summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-08-13 22:49:55 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-08-13 22:49:55 +0000
commit38d88d1284eff4b72ed94ef0509b1ba70c0ea3e2 (patch)
tree80931f9172578a8f82634b9e5099a97157a61834
parent554c47cdde72472dd199c5fdf8bce58322a2995b (diff)
Work with newest version of OpenSSL.
-rw-r--r--lib/libkeynote/signature.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libkeynote/signature.c b/lib/libkeynote/signature.c
index c3d29da4655..818b8e59f85 100644
--- a/lib/libkeynote/signature.c
+++ b/lib/libkeynote/signature.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signature.c,v 1.4 1999/05/31 20:10:00 angelos Exp $ */
+/* $OpenBSD: signature.c,v 1.5 1999/08/13 22:49:54 angelos Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -1027,7 +1027,12 @@ keynote_sign_assertion(struct assertion *as, char *sigalg, void *key,
}
/* RSA-specific */
+#if SSLEAY_VERSION_NUMBER >= 0x00904
+ rsa = (RSA *) PEM_read_bio_RSAPrivateKey(biokey, NULL, NULL, NULL);
+#else /* SSLEAY_VERSION_NUMBER */
rsa = (RSA *) PEM_read_bio_RSAPrivateKey(biokey, NULL, NULL);
+#endif /* SSLEAY_VERSION_NUMBER */
+
if (rsa == (RSA *) NULL)
{
BIO_free(biokey);