diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-03-10 15:04:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-03-11 17:40:47 +0000 |
commit | a6eb1ce6a989d01bb00e9749789b690744be506c (patch) | |
tree | c4071e00c47ba6c7fc91a50d26d36052edf134d8 /crypto/asn1/x_sig.c | |
parent | bb26842d1c8f99c1267b45361a2fc76822c0f913 (diff) |
Make X509_SIG opaque.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/asn1/x_sig.c')
-rw-r--r-- | crypto/asn1/x_sig.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/asn1/x_sig.c b/crypto/asn1/x_sig.c index 8197d2a30a..b880e2420b 100644 --- a/crypto/asn1/x_sig.c +++ b/crypto/asn1/x_sig.c @@ -59,6 +59,7 @@ #include "internal/cryptlib.h" #include <openssl/asn1t.h> #include <openssl/x509.h> +#include "internal/x509_int.h" ASN1_SEQUENCE(X509_SIG) = { ASN1_SIMPLE(X509_SIG, algor, X509_ALGOR), @@ -66,3 +67,12 @@ ASN1_SEQUENCE(X509_SIG) = { } ASN1_SEQUENCE_END(X509_SIG) IMPLEMENT_ASN1_FUNCTIONS(X509_SIG) + +void X509_SIG_get0(X509_ALGOR **palg, ASN1_OCTET_STRING **pdigest, + X509_SIG *sig) +{ + if (palg) + *palg = sig->algor; + if (pdigest) + *pdigest = sig->digest; +} |