diff options
author | tb <> | 2022-07-04 12:22:32 +0000 |
---|---|---|
committer | tb <> | 2022-07-04 12:22:32 +0000 |
commit | 00e824726e67ac60f4500af3e2eb04bc6165190b (patch) | |
tree | 9e35a209080134fc201402fc0940a82725121512 /src/lib/libcrypto/dsa/dsa_locl.h | |
parent | 7869bf01c6d0b61d5bf56605b35b2ee60ee72e3c (diff) | |
download | openbsd-00e824726e67ac60f4500af3e2eb04bc6165190b.tar.gz openbsd-00e824726e67ac60f4500af3e2eb04bc6165190b.tar.bz2 openbsd-00e824726e67ac60f4500af3e2eb04bc6165190b.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_locl.h')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_locl.h b/src/lib/libcrypto/dsa/dsa_locl.h index 299c67a6b9..f78ff818ab 100644 --- a/src/lib/libcrypto/dsa/dsa_locl.h +++ b/src/lib/libcrypto/dsa/dsa_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_locl.h,v 1.5 2022/01/14 08:29:06 tb Exp $ */ | 1 | /* $OpenBSD: dsa_locl.h,v 1.6 2022/07/04 12:22:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2007 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2007 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -63,7 +63,7 @@ struct DSA_SIG_st { | |||
63 | } /* DSA_SIG */; | 63 | } /* DSA_SIG */; |
64 | 64 | ||
65 | struct dsa_method { | 65 | struct dsa_method { |
66 | const char *name; | 66 | char *name; |
67 | DSA_SIG *(*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); | 67 | DSA_SIG *(*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); |
68 | int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, | 68 | int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, |
69 | BIGNUM **rp); | 69 | BIGNUM **rp); |