diff options
author | tb <> | 2018-03-17 15:19:12 +0000 |
---|---|---|
committer | tb <> | 2018-03-17 15:19:12 +0000 |
commit | ff154a0391cfcee220c90f520739c6f08f97c2aa (patch) | |
tree | b098ccdac17cb9ccf01e46859b80d5ce671af779 /src/lib/libcrypto/dsa/dsa.h | |
parent | 47bd2696f108ed72a37c309a2c1d049aeee2c89d (diff) | |
download | openbsd-ff154a0391cfcee220c90f520739c6f08f97c2aa.tar.gz openbsd-ff154a0391cfcee220c90f520739c6f08f97c2aa.tar.bz2 openbsd-ff154a0391cfcee220c90f520739c6f08f97c2aa.zip |
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 'src/lib/libcrypto/dsa/dsa.h')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 8fe7c668b2..61bfc2b466 100644 --- a/src/lib/libcrypto/dsa/dsa.h +++ b/src/lib/libcrypto/dsa/dsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.h,v 1.29 2018/02/20 17:52:27 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.30 2018/03/17 15:19:12 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 | * |
@@ -269,6 +269,13 @@ int DSA_test_flags(const DSA *d, int flags); | |||
269 | void DSA_set_flags(DSA *d, int flags); | 269 | void DSA_set_flags(DSA *d, int flags); |
270 | ENGINE *DSA_get0_engine(DSA *d); | 270 | ENGINE *DSA_get0_engine(DSA *d); |
271 | 271 | ||
272 | DSA_METHOD *DSA_meth_new(const char *name, int flags); | ||
273 | void DSA_meth_free(DSA_METHOD *meth); | ||
274 | DSA_METHOD *DSA_meth_dup(const DSA_METHOD *meth); | ||
275 | int DSA_meth_set_sign(DSA_METHOD *meth, | ||
276 | DSA_SIG *(*sign)(const unsigned char *, int, DSA *)); | ||
277 | int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *)); | ||
278 | |||
272 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ | 279 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ |
273 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ | 280 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ |
274 | EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL) | 281 | EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL) |