![]() |
TrustCore SDK NanoCrypto API reference
version 7.0
|
Container for a certificate's version 3 extensions. More...
Data Fields | |
| sbyte | certPathLen |
Number of certificates in the certificate chain; if negative, it's omitted from the basicConstraints. More... | |
| byteBoolean | hasBasicConstraints |
TRUE specifies that the certificate contains a basicConstraints extension; FALSE otherwise. More... | |
| byteBoolean | hasKeyUsage |
TRUE specifies that the certificate contains a keyUsage extension; FALSE otherwise. More... | |
| byteBoolean | isCA |
TRUE specifies that the basicConstraints is a CA value; FALSE otherwise. More... | |
| ubyte2 | keyUsage |
| Bit-string representing the desired version 3 certificate extensions. More... | |
| ubyte4 | otherExtCount |
| Number of extensions in the extensions array. More... | |
| extensions * | otherExts |
| Pointer to array of version 3 extensions. More... | |
This structure specifies a certificate's version 3 extensions. For more information, refer to RFC 3280 (ftp://ftp.rfc-editor.org/in-notes/pdfrfc/rfc3280.txt.pdf).
| sbyte certExtensions::certPathLen |
(This field corresponds to the pathLenConstraint referenced in RFC 3280.)
Number of certificates in the certificate chain; if negative, it's omitted from the basicConstraints. (This field corresponds to the pathLenConstraint referenced in RFC 3280.
| byteBoolean certExtensions::hasBasicConstraints |
TRUE specifies that the certificate contains a basicConstraints extension; FALSE otherwise.
| byteBoolean certExtensions::hasKeyUsage |
TRUE specifies that the certificate contains a keyUsage extension; FALSE otherwise.
| byteBoolean certExtensions::isCA |
TRUE specifies that the basicConstraints is a CA value; FALSE otherwise.
| ubyte2 certExtensions::keyUsage |
Bit-string representing the desired version 3 certificate extensions; click keyUsage for details about setting this value.
keyUsage ::= BIT STRING {
digitalSignature(0), nonRepudiation(1), keyEncipherment(2),
dataEncipherment(3), keyAgreement(4), keyCertSign(5), cRLSign(6),
encipherOnly(7), decipherOnly(8)}
For example, to set the key usage extension to "digital signature, certificate signing, CRL signing" use the following code: <tt>%keyUsage = (1 << 0) + (1 << 5) + (1 << 6)</tt>
| ubyte4 certExtensions::otherExtCount |
Number of extensions in the extensions array.
| extensions* certExtensions::otherExts |
Pointer to array of version 3 extensions.