summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-02-20 17:52:28 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-02-20 17:52:28 +0000
commit7ff10b638e4d2c9dc1dfce38d38fbb406ac7e025 (patch)
treea989407144f8bd0e9d02f7ccec4b9afdd10b3cd8 /lib
parent9b258274e64b255d6e2283eaf33832c1c9dff37c (diff)
Provide DSA_get0_engine()
ok jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/Symbols.list1
-rw-r--r--lib/libcrypto/dsa/dsa.h3
-rw-r--r--lib/libcrypto/dsa/dsa_lib.c8
3 files changed, 10 insertions, 2 deletions
diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list
index 7e5b59f0190..745f2b29ef9 100644
--- a/lib/libcrypto/Symbols.list
+++ b/lib/libcrypto/Symbols.list
@@ -810,6 +810,7 @@ DSA_free
DSA_generate_key
DSA_generate_parameters
DSA_generate_parameters_ex
+DSA_get0_engine
DSA_get0_key
DSA_get0_pqg
DSA_get_default_method
diff --git a/lib/libcrypto/dsa/dsa.h b/lib/libcrypto/dsa/dsa.h
index 7e73b205b09..8fe7c668b29 100644
--- a/lib/libcrypto/dsa/dsa.h
+++ b/lib/libcrypto/dsa/dsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa.h,v 1.28 2018/02/20 17:48:35 tb Exp $ */
+/* $OpenBSD: dsa.h,v 1.29 2018/02/20 17:52:27 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -267,6 +267,7 @@ int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
void DSA_clear_flags(DSA *d, int flags);
int DSA_test_flags(const DSA *d, int flags);
void DSA_set_flags(DSA *d, int flags);
+ENGINE *DSA_get0_engine(DSA *d);
#define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
diff --git a/lib/libcrypto/dsa/dsa_lib.c b/lib/libcrypto/dsa/dsa_lib.c
index a43b142b6ec..8190d073486 100644
--- a/lib/libcrypto/dsa/dsa_lib.c
+++ b/lib/libcrypto/dsa/dsa_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa_lib.c,v 1.27 2018/02/20 17:45:44 tb Exp $ */
+/* $OpenBSD: dsa_lib.c,v 1.28 2018/02/20 17:52:27 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -382,3 +382,9 @@ DSA_set_flags(DSA *d, int flags)
{
d->flags |= flags;
}
+
+ENGINE *
+DSA_get0_engine(DSA *d)
+{
+ return d->engine;
+}