2019-10-25 00:26:17 +02:00
|
|
|
/* x509.h for openssl */
|
|
|
|
|
2021-09-07 00:33:21 +02:00
|
|
|
#include <libwolfssl/openssl/ssl.h>
|
|
|
|
#include <libwolfssl/openssl/crypto.h>
|
|
|
|
#include <libwolfssl/openssl/dh.h>
|
|
|
|
#include <libwolfssl/openssl/ec.h>
|
|
|
|
#include <libwolfssl/openssl/ecdsa.h>
|
|
|
|
#include <libwolfssl/openssl/pkcs7.h>
|
2019-10-25 00:26:17 +02:00
|
|
|
|
|
|
|
/* wolfSSL_X509_print_ex flags */
|
|
|
|
#define X509_FLAG_COMPAT (0UL)
|
|
|
|
#define X509_FLAG_NO_HEADER (1UL << 0)
|
|
|
|
#define X509_FLAG_NO_VERSION (1UL << 1)
|
|
|
|
#define X509_FLAG_NO_SERIAL (1UL << 2)
|
|
|
|
#define X509_FLAG_NO_SIGNAME (1UL << 3)
|
|
|
|
#define X509_FLAG_NO_ISSUER (1UL << 4)
|
|
|
|
#define X509_FLAG_NO_VALIDITY (1UL << 5)
|
|
|
|
#define X509_FLAG_NO_SUBJECT (1UL << 6)
|
|
|
|
#define X509_FLAG_NO_PUBKEY (1UL << 7)
|
|
|
|
#define X509_FLAG_NO_EXTENSIONS (1UL << 8)
|
|
|
|
#define X509_FLAG_NO_SIGDUMP (1UL << 9)
|
|
|
|
#define X509_FLAG_NO_AUX (1UL << 10)
|
|
|
|
#define X509_FLAG_NO_ATTRIBUTES (1UL << 11)
|
|
|
|
#define X509_FLAG_NO_IDS (1UL << 12)
|
2020-05-06 01:15:21 +02:00
|
|
|
|
|
|
|
#define XN_FLAG_FN_SN 0
|
2021-09-06 21:16:45 +02:00
|
|
|
#define XN_FLAG_ONELINE 0
|
|
|
|
#define XN_FLAG_COMPAT 0
|
|
|
|
#define XN_FLAG_RFC2253 1
|
|
|
|
#define XN_FLAG_SEP_COMMA_PLUS (1 << 16)
|
|
|
|
#define XN_FLAG_SEP_CPLUS_SPC (2 << 16)
|
|
|
|
#define XN_FLAG_SEP_SPLUS_SPC (3 << 16)
|
|
|
|
#define XN_FLAG_SEP_MULTILINE (4 << 16)
|
|
|
|
#define XN_FLAG_SEP_MASK (0xF << 16)
|
|
|
|
#define XN_FLAG_DN_REV (1 << 20)
|
|
|
|
#define XN_FLAG_FN_LN (1 << 21)
|
|
|
|
#define XN_FLAG_FN_OID (2 << 21)
|
|
|
|
#define XN_FLAG_FN_NONE (3 << 21)
|
|
|
|
#define XN_FLAG_FN_MASK (3 << 21)
|
|
|
|
#define XN_FLAG_SPC_EQ (1 << 23)
|
|
|
|
#define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)
|
|
|
|
#define XN_FLAG_FN_ALIGN (1 << 25)
|
|
|
|
|
|
|
|
#define XN_FLAG_MULTILINE 0xFFFF
|