提交 bc3686df 编写于 作者: D Dr. Stephen Henson

make X509_CERT_AUX opaque

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 d8c054f2
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/x509_int.h"
/* /*
* X509_CERT_AUX and string set routines * X509_CERT_AUX and string set routines
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/x509_int.h"
/* /*
* X509_CERT_AUX routines. These are used to encode additional user * X509_CERT_AUX routines. These are used to encode additional user
......
...@@ -75,3 +75,17 @@ struct X509_name_st { ...@@ -75,3 +75,17 @@ struct X509_name_st {
unsigned char *canon_enc; unsigned char *canon_enc;
int canon_enclen; int canon_enclen;
} /* X509_NAME */ ; } /* X509_NAME */ ;
/*
* This stuff is certificate "auxiliary info" it contains details which are
* useful in certificate stores and databases. When used this is tagged onto
* the end of the certificate itself
*/
struct x509_cert_aux_st {
STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */
STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */
ASN1_UTF8STRING *alias; /* "friendly name" */
ASN1_OCTET_STRING *keyid; /* key id of private key */
STACK_OF(X509_ALGOR) *other; /* other unspecified info */
};
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include "internal/x509_int.h"
static int tr_cmp(const X509_TRUST *const *a, const X509_TRUST *const *b); static int tr_cmp(const X509_TRUST *const *a, const X509_TRUST *const *b);
static void trtable_free(X509_TRUST *p); static void trtable_free(X509_TRUST *p);
......
...@@ -196,19 +196,7 @@ typedef struct x509_cinf_st { ...@@ -196,19 +196,7 @@ typedef struct x509_cinf_st {
ASN1_ENCODING enc; ASN1_ENCODING enc;
} X509_CINF; } X509_CINF;
/* typedef struct x509_cert_aux_st X509_CERT_AUX;
* This stuff is certificate "auxiliary info" it contains details which are
* useful in certificate stores and databases. When used this is tagged onto
* the end of the certificate itself
*/
typedef struct x509_cert_aux_st {
STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */
STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */
ASN1_UTF8STRING *alias; /* "friendly name" */
ASN1_OCTET_STRING *keyid; /* key id of private key */
STACK_OF(X509_ALGOR) *other; /* other unspecified info */
} X509_CERT_AUX;
struct x509_st { struct x509_st {
X509_CINF *cert_info; X509_CINF *cert_info;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册