diff options
author | jsing <> | 2018-02-14 16:18:10 +0000 |
---|---|---|
committer | jsing <> | 2018-02-14 16:18:10 +0000 |
commit | badad72c27155e042a4ba77f179c0771b373d3fa (patch) | |
tree | b297126127d43135ef5a064121f968a4e8a6d410 /src/lib/libcrypto/asn1 | |
parent | 913c1940295492c07a0e82ccce38a16ac66ad1e9 (diff) | |
download | openbsd-badad72c27155e042a4ba77f179c0771b373d3fa.tar.gz openbsd-badad72c27155e042a4ba77f179c0771b373d3fa.tar.bz2 openbsd-badad72c27155e042a4ba77f179c0771b373d3fa.zip |
Provide X509_get_signature_nid().
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index 168c2c0fcd..c82301a891 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.24 2015/03/19 14:00:22 tedu Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.25 2018/02/14 16:18:10 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 | * |
@@ -344,3 +344,9 @@ i2d_X509_AUX(X509 *a, unsigned char **pp) | |||
344 | length += i2d_X509_CERT_AUX(a->aux, pp); | 344 | length += i2d_X509_CERT_AUX(a->aux, pp); |
345 | return length; | 345 | return length; |
346 | } | 346 | } |
347 | |||
348 | int | ||
349 | X509_get_signature_nid(const X509 *x) | ||
350 | { | ||
351 | return OBJ_obj2nid(x->sig_alg->algorithm); | ||
352 | } | ||