summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dsa/dsa.h
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-03-17 15:19:13 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-03-17 15:19:13 +0000
commit0820c06699c9aa3d4dd28b47aaef2990994526d2 (patch)
tree0e6448d8afaefddf1a529ee4eb0bcaa1a059412e /lib/libcrypto/dsa/dsa.h
parentb5075b3edbe2a1ca80b70ca3f8fe9582c1a8706e (diff)
Add DSA_meth_{dup,free,new,set_{finish,sign}}()
As in RSA_meth_*, note that these functions return NULL in out-of-memory situations, but they do not set an error explicitly. ok jsing
Diffstat (limited to 'lib/libcrypto/dsa/dsa.h')
-rw-r--r--lib/libcrypto/dsa/dsa.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libcrypto/dsa/dsa.h b/lib/libcrypto/dsa/dsa.h
index 8fe7c668b29..61bfc2b4668 100644
--- a/lib/libcrypto/dsa/dsa.h
+++ b/lib/libcrypto/dsa/dsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa.h,v 1.29 2018/02/20 17:52:27 tb Exp $ */
+/* $OpenBSD: dsa.h,v 1.30 2018/03/17 15:19:12 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -269,6 +269,13 @@ int DSA_test_flags(const DSA *d, int flags);
void DSA_set_flags(DSA *d, int flags);
ENGINE *DSA_get0_engine(DSA *d);
+DSA_METHOD *DSA_meth_new(const char *name, int flags);
+void DSA_meth_free(DSA_METHOD *meth);
+DSA_METHOD *DSA_meth_dup(const DSA_METHOD *meth);
+int DSA_meth_set_sign(DSA_METHOD *meth,
+ DSA_SIG *(*sign)(const unsigned char *, int, DSA *));
+int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *));
+
#define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \
EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)