diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index c82301a891..6a56a795c0 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_x509.c,v 1.25 2018/02/14 16:18:10 jsing Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.26 2018/02/17 15:50:42 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -345,6 +345,16 @@ i2d_X509_AUX(X509 *a, unsigned char **pp) | |||
345 | return length; | 345 | return length; |
346 | } | 346 | } |
347 | 347 | ||
348 | void | ||
349 | X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **palg, | ||
350 | const X509 *x) | ||
351 | { | ||
352 | if (psig != NULL) | ||
353 | *psig = x->signature; | ||
354 | if (palg != NULL) | ||
355 | *palg = x->sig_alg; | ||
356 | } | ||
357 | |||
348 | int | 358 | int |
349 | X509_get_signature_nid(const X509 *x) | 359 | X509_get_signature_nid(const X509 *x) |
350 | { | 360 | { |