diff options
Diffstat (limited to 'ssh-rsa.c')
-rw-r--r-- | ssh-rsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,7 +14,7 @@ | |||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | */ | 15 | */ |
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$OpenBSD: ssh-rsa.c,v 1.30 2003/06/18 11:28:11 markus Exp $"); | 17 | RCSID("$OpenBSD: ssh-rsa.c,v 1.31 2003/11/10 16:23:41 jakob Exp $"); |
18 | 18 | ||
19 | #include <openssl/evp.h> | 19 | #include <openssl/evp.h> |
20 | #include <openssl/err.h> | 20 | #include <openssl/err.h> |
@@ -31,8 +31,8 @@ static int openssh_RSA_verify(int, u_char *, u_int, u_char *, u_int, RSA *); | |||
31 | 31 | ||
32 | /* RSASSA-PKCS1-v1_5 (PKCS #1 v2.0 signature) with SHA1 */ | 32 | /* RSASSA-PKCS1-v1_5 (PKCS #1 v2.0 signature) with SHA1 */ |
33 | int | 33 | int |
34 | ssh_rsa_sign(Key *key, u_char **sigp, u_int *lenp, | 34 | ssh_rsa_sign(const Key *key, u_char **sigp, u_int *lenp, |
35 | u_char *data, u_int datalen) | 35 | const u_char *data, u_int datalen) |
36 | { | 36 | { |
37 | const EVP_MD *evp_md; | 37 | const EVP_MD *evp_md; |
38 | EVP_MD_CTX md; | 38 | EVP_MD_CTX md; |
@@ -96,8 +96,8 @@ ssh_rsa_sign(Key *key, u_char **sigp, u_int *lenp, | |||
96 | } | 96 | } |
97 | 97 | ||
98 | int | 98 | int |
99 | ssh_rsa_verify(Key *key, u_char *signature, u_int signaturelen, | 99 | ssh_rsa_verify(const Key *key, const u_char *signature, u_int signaturelen, |
100 | u_char *data, u_int datalen) | 100 | const u_char *data, u_int datalen) |
101 | { | 101 | { |
102 | Buffer b; | 102 | Buffer b; |
103 | const EVP_MD *evp_md; | 103 | const EVP_MD *evp_md; |