From: tb Date: Tue, 20 Feb 2018 17:52:27 +0000 (+0000) Subject: Provide DSA_get0_engine() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=871f92a6e76bbbc9ae5b5488919f1013d0c4c491;p=openbsd Provide DSA_get0_engine() ok jsing --- 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; +}