diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-08-13 22:49:55 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-08-13 22:49:55 +0000 |
commit | 38d88d1284eff4b72ed94ef0509b1ba70c0ea3e2 (patch) | |
tree | 80931f9172578a8f82634b9e5099a97157a61834 | |
parent | 554c47cdde72472dd199c5fdf8bce58322a2995b (diff) |
Work with newest version of OpenSSL.
-rw-r--r-- | lib/libkeynote/signature.c | 7 |
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); |