diff options
author | tb <> | 2018-03-17 15:39:43 +0000 |
---|---|---|
committer | tb <> | 2018-03-17 15:39:43 +0000 |
commit | 2a6a1818f8647d823a4f73d2687c748e7f2e0290 (patch) | |
tree | 1f20760c7a26a270ef7ad507606a37253463ed49 /src/lib/libcrypto/x509/x509_lu.c | |
parent | 6901496c6e645908747ab7b69ce947f3ea51fa84 (diff) | |
download | openbsd-2a6a1818f8647d823a4f73d2687c748e7f2e0290.tar.gz openbsd-2a6a1818f8647d823a4f73d2687c748e7f2e0290.tar.bz2 openbsd-2a6a1818f8647d823a4f73d2687c748e7f2e0290.zip |
Provide X509_OBJECT_get_type(). Instead of the X509_LOOKUP_TYPE enum
(which we don't have) it returns a plain int.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lu.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_lu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c index 9276a0e2d5..0033069b3e 100644 --- a/src/lib/libcrypto/x509/x509_lu.c +++ b/src/lib/libcrypto/x509/x509_lu.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_lu.c,v 1.26 2018/02/22 17:19:31 jsing Exp $ */ | 1 | /* $OpenBSD: x509_lu.c,v 1.27 2018/03/17 15:39:43 tb 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 | * |
@@ -458,6 +458,12 @@ X509_OBJECT_up_ref_count(X509_OBJECT *a) | |||
458 | } | 458 | } |
459 | } | 459 | } |
460 | 460 | ||
461 | int | ||
462 | X509_OBJECT_get_type(const X509_OBJECT *a) | ||
463 | { | ||
464 | return a->type; | ||
465 | } | ||
466 | |||
461 | void | 467 | void |
462 | X509_OBJECT_free_contents(X509_OBJECT *a) | 468 | X509_OBJECT_free_contents(X509_OBJECT *a) |
463 | { | 469 | { |