[pkg-opensc-commit] [libp11] 41/86: Allow building evp-sign on OpenSSL 0.9.8

Eric Dorland eric at moszumanska.debian.org
Sun Jul 24 21:40:20 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 881eaa48221ca15326abc151f79df9aba1914f00
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date:   Tue Feb 9 12:46:00 2016 +0100

    Allow building evp-sign on OpenSSL 0.9.8
---
 tests/evp-sign.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/evp-sign.c b/tests/evp-sign.c
index b5c0ba8..0bb37a3 100644
--- a/tests/evp-sign.c
+++ b/tests/evp-sign.c
@@ -263,6 +263,10 @@ int main(int argc, char **argv)
 	}
 	EVP_MD_CTX_destroy(ctx);
 
+	printf("Signature created\n");
+
+#if OPENSSL_VERSION_NUMBER >= 0x1000000fL
+
 	ctx = EVP_MD_CTX_create();
 	if (EVP_DigestInit(ctx, digest_algo) <= 0) {
 		display_openssl_errors(__LINE__);
@@ -285,6 +289,14 @@ int main(int argc, char **argv)
 	}
 	EVP_MD_CTX_destroy(ctx);
 
+	printf("Signature verified\n");
+
+#else /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
+
+	printf("Unable to verify signature with %s\n", OPENSSL_VERSION_TEXT);
+
+#endif /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
+
 	EVP_PKEY_free(public_key);
 	EVP_PKEY_free(private_key);
 	ENGINE_finish(e);

-- 
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