diff options
| author | tb <> | 2022-07-04 12:22:32 +0000 |
|---|---|---|
| committer | tb <> | 2022-07-04 12:22:32 +0000 |
| commit | 76cd62b3a22a0de732f8f93e3f6698a2a779f82b (patch) | |
| tree | 9e35a209080134fc201402fc0940a82725121512 /src/lib/libcrypto/dsa/dsa.h | |
| parent | a23df09234adf6285b199e9865927a636193d84c (diff) | |
| download | openbsd-76cd62b3a22a0de732f8f93e3f6698a2a779f82b.tar.gz openbsd-76cd62b3a22a0de732f8f93e3f6698a2a779f82b.tar.bz2 openbsd-76cd62b3a22a0de732f8f93e3f6698a2a779f82b.zip | |
Prepare to provide DSA_meth_{get0,set1}_name()
Also follow OpenSSL by making the name non-const to avoid ugly casting.
Used by OpenSC's pkcs11-helper, as reported by Fabrice Fontaine in
https://github.com/libressl-portable/openbsd/issues/130
ok jsing sthen
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa.h')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 2ee27d775f..12b1faadf3 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.36 2022/06/27 12:28:46 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.37 2022/07/04 12:22:32 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 | * |
| @@ -222,6 +222,10 @@ ENGINE *DSA_get0_engine(DSA *d); | |||
| 222 | DSA_METHOD *DSA_meth_new(const char *name, int flags); | 222 | DSA_METHOD *DSA_meth_new(const char *name, int flags); |
| 223 | void DSA_meth_free(DSA_METHOD *meth); | 223 | void DSA_meth_free(DSA_METHOD *meth); |
| 224 | DSA_METHOD *DSA_meth_dup(const DSA_METHOD *meth); | 224 | DSA_METHOD *DSA_meth_dup(const DSA_METHOD *meth); |
| 225 | #ifdef LIBRESSL_INTERNAL | ||
| 226 | const char *DSA_meth_get0_name(const DSA_METHOD *meth); | ||
| 227 | int DSA_meth_set1_name(DSA_METHOD *meth, const char *name); | ||
| 228 | #endif | ||
| 225 | int DSA_meth_set_sign(DSA_METHOD *meth, | 229 | int DSA_meth_set_sign(DSA_METHOD *meth, |
| 226 | DSA_SIG *(*sign)(const unsigned char *, int, DSA *)); | 230 | DSA_SIG *(*sign)(const unsigned char *, int, DSA *)); |
| 227 | int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *)); | 231 | int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *)); |
