SharkSSL™ Embedded SSL/TLS Stack
SharkSslASN1.h File Reference

Detailed Description

ASN.1 macros.

#include "SharkSslEx.h"

Go to the source code of this file.

Data Structures

struct  SharkSslASN1Create
 Opaque object used when creating ASN.1 encoded data. More...
 
struct  SharkSslBitExtReq
 https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_tech_notes/nss_tech_note3 http://tools.ietf.org/html/rfc5280#section-4.2.1.12 More...
 

Macros

#define SHARKSSL_ASN1_BOOLEAN   0x01
 ASN.1-DER API http://luca.ntop.org/Teaching/Appunti/asn1.html for X.509 https://www.cs.auckland.ac.nz/~pgut001/pubs/x509guide.txt http://www.itu.int/ITU-T/studygroups/com10/languages/X.690_1297.pdf.
 
#define SHARKSSL_OID_JIIT_DS   0x55
 {joint-iso-itu-t(2) ds(5) attributeType(4)
 
#define SHARKSSL_OID_JIIT_DS_CERTEXT   0x1D
 {joint-iso-itu-t(2) ds(5) certificateExtension(29)
 
#define SHARKSSL_CSR_TAG_ATTRIBUTES   0x00
 PKCS #10: Certificate Request tags https://tools.ietf.org/html/rfc2986. More...
 
#define SHARKSSL_X509_TAG_VERSION   0x00
 X.509v3 tags https://www.cs.auckland.ac.nz/~pgut001/pubs/x509guide.txt https://www.ietf.org/rfc/rfc2459.txt.
 
#define SHARKSSL_ECC_PRIVKEY_TAG_PARAMETERS   0x00
 ECC private key tags https://www.ietf.org/rfc/rfc5915.txt.
 
#define SHARKSSL_X509_KU_DIGITAL_SIGNATURE   0x80
 X.509 v3 Key Usage Extension flags.
 
#define SHARKSSL_X509_NS_CERT_TYPE_SSL_CLIENT   0x80
 Netscape certificate types https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_tech_notes/nss_tech_note3.
 
#define SharkSslASN1Create_getDataLen(o, startOfDataPtr)   (*(startOfDataPtr) = (o)->ptr, (int)((o)->end - (o)->ptr))
 Returns the length of the ASN.1 encoded data. More...
 

Typedefs

typedef struct SharkSslASN1Create SharkSslASN1Create
 Opaque object used when creating ASN.1 encoded data.
 
typedef struct SharkSslBitExtReq SharkSslBitExtReq
 https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_tech_notes/nss_tech_note3 http://tools.ietf.org/html/rfc5280#section-4.2.1.12
 

Macro Definition Documentation

◆ SHARKSSL_CSR_TAG_ATTRIBUTES

#define SHARKSSL_CSR_TAG_ATTRIBUTES   0x00

PKCS #10: Certificate Request tags https://tools.ietf.org/html/rfc2986.

◆ SharkSslASN1Create_getDataLen

#define SharkSslASN1Create_getDataLen (   o,
  startOfDataPtr 
)    (*(startOfDataPtr) = (o)->ptr, (int)((o)->end - (o)->ptr))

Returns the length of the ASN.1 encoded data.

Parameters
oASN.1 instance
startOfDataPtrpointer to the beginning of the ASN.1 encoded data