[pkg-opensc-commit] [libp11] 20/86: Fixed "make check" on OpenSSL 1.1.0-dev
Eric Dorland
eric at moszumanska.debian.org
Sun Jul 24 21:40:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit fc5b1dce5a83a89a256d86bda5bc1311fb9e4004
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date: Tue Jan 26 14:11:51 2016 +0100
Fixed "make check" on OpenSSL 1.1.0-dev
---
tests/fork-test.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/fork-test.c b/tests/fork-test.c
index 19e7c72..46b7ba6 100644
--- a/tests/fork-test.c
+++ b/tests/fork-test.c
@@ -23,6 +23,10 @@
#define RANDOM_SIZE 20
#define MAX_SIGSIZE 256
+#if OPENSSL_VERSION_NUMBER < 0x10100003L
+#define EVP_PKEY_get0_RSA(key) ((key)->pkey.rsa)
+#endif
+
static void do_fork();
static void error_queue(const char *name);
@@ -189,7 +193,7 @@ loggedin:
/* now verify the result */
rc = RSA_verify(NID_sha1, random, RANDOM_SIZE,
- signature, siglen, pubkey->pkey.rsa);
+ signature, siglen, EVP_PKEY_get0_RSA(pubkey));
if (rc != 1) {
fprintf(stderr, "fatal: RSA_verify failed\n");
goto failed;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list