Export (0) Print
Expand All

DNS_KEY_DATA structure

The DNS_KEY_DATA structure represents a DNS key (KEY) resource record (RR) as specified in RFC 3445.

Syntax


typedef struct {
  WORD wFlags;
  BYTE chProtocol;
  BYTE chAlgorithm;
  BYTE Key[1];
} DNS_KEY_DATA, *PDNS_KEY_DATA;

Members

wFlags

A set of flags that specify whether this is a zone key as described in section 4 of RFC 3445.

chProtocol

A value that specifies the protocol with which Key can be used. The possible values are shown in the following table.

ValueMeaning
3

Domain Name System Security Extensions (DNSSEC)

 

chAlgorithm

A value that specifies the algorithm to use with Key. The possible values are shown in the following table.

ValueMeaning
1

RSA/MD5 (RFC 2537)

2

Diffie-Hellman (RFC 2539)

3

DSA (RFC 2536)

4

Elliptic curve cryptography

 

Key

A BYTE array that contains the public key for the algorithm in chAlgorithm, represented in base 64, as described in Appendix A of RFC 2535.

Remarks

The DNS_KEY_DATA structure is used in conjunction with the DNS_RECORD structure to programmatically manage DNS entries.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windns.h

See also

DNS_RECORD

 

 

Community Additions

ADD
Show:
© 2014 Microsoft