diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-03-16 18:43:17 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-03-25 15:15:00 +0100 |
commit | 2743e38c2f4bcb00142d8c65e48a66f547033a64 (patch) | |
tree | 640e29c0dbfd9abb5fd4dd0d993127a162965922 /crypto/x509/x509.h | |
parent | Fix bug in s_client. Previously default verify locations would only be loaded (diff) | |
download | openssl-2743e38c2f4bcb00142d8c65e48a66f547033a64.tar.xz openssl-2743e38c2f4bcb00142d8c65e48a66f547033a64.zip |
make X509_NAME opaque
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509.h')
-rw-r--r-- | crypto/x509/x509.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 5fcea0c6bb..7a59dab2d6 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -148,25 +148,10 @@ typedef struct X509_sig_st { ASN1_OCTET_STRING *digest; } X509_SIG; -typedef struct X509_name_entry_st { - ASN1_OBJECT *object; - ASN1_STRING *value; - int set; - int size; /* temp variable */ -} X509_NAME_ENTRY; +typedef struct X509_name_entry_st X509_NAME_ENTRY; DECLARE_STACK_OF(X509_NAME_ENTRY) -/* we always keep X509_NAMEs in 2 forms. */ -struct X509_name_st { - STACK_OF(X509_NAME_ENTRY) *entries; - int modified; /* true if 'bytes' needs to be built */ - BUF_MEM *bytes; -/* unsigned long hash; Keep the hash around for lookups */ - unsigned char *canon_enc; - int canon_enclen; -} /* X509_NAME */ ; - DECLARE_STACK_OF(X509_NAME) # define X509_EX_V_NETSCAPE_HACK 0x8000 @@ -980,6 +965,7 @@ int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len); ASN1_OBJECT *X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne); ASN1_STRING *X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); +int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne); int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, |