diff options
author | tb <> | 2018-02-20 17:45:44 +0000 |
---|---|---|
committer | tb <> | 2018-02-20 17:45:44 +0000 |
commit | 90a2cac2c9296c6001b956f786252ce7b31af437 (patch) | |
tree | 800b6a84ca7bb475426a66249adbaf245110e320 /src/lib/libcrypto/dsa/dsa.h | |
parent | e6e87dba22757a3b4937ac796bb40b817e71a3d3 (diff) | |
download | openbsd-90a2cac2c9296c6001b956f786252ce7b31af437.tar.gz openbsd-90a2cac2c9296c6001b956f786252ce7b31af437.tar.bz2 openbsd-90a2cac2c9296c6001b956f786252ce7b31af437.zip |
Provide DSA_{clear,set,test}_flags()
ok jsing
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 20db7f91c1..6d618113fd 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.26 2018/02/18 14:58:12 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.27 2018/02/20 17:45:44 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 | * |
@@ -262,6 +262,9 @@ void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, | |||
262 | int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); | 262 | int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); |
263 | void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); | 263 | void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); |
264 | int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); | 264 | int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); |
265 | void DSA_clear_flags(DSA *d, int flags); | ||
266 | int DSA_test_flags(const DSA *d, int flags); | ||
267 | void DSA_set_flags(DSA *d, int flags); | ||
265 | 268 | ||
266 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ | 269 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ |
267 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ | 270 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ |