X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Fx_sig.c;h=b880e2420b1b215a294f845a391a8bfdcf98b476;hp=dd33720c107914792c52f821858eb16e1d8b3088;hb=45c6e23c978da0b23df5e5a9a3c2e631b79ba497;hpb=0f113f3ee4d629ef9a4a30911b22b224772085e5;ds=sidebyside diff --git a/crypto/asn1/x_sig.c b/crypto/asn1/x_sig.c index dd33720c10..b880e2420b 100644 --- a/crypto/asn1/x_sig.c +++ b/crypto/asn1/x_sig.c @@ -1,4 +1,3 @@ -/* crypto/asn1/x_sig.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -57,9 +56,10 @@ */ #include -#include "cryptlib.h" +#include "internal/cryptlib.h" #include #include +#include "internal/x509_int.h" ASN1_SEQUENCE(X509_SIG) = { ASN1_SIMPLE(X509_SIG, algor, X509_ALGOR), @@ -67,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; +}