diff options
Diffstat (limited to 'ssh_api.c')
-rw-r--r-- | ssh_api.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh_api.c,v 1.18 2019/09/13 04:36:43 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh_api.c,v 1.19 2019/10/31 21:23:19 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2012 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2012 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -54,7 +54,7 @@ int _ssh_host_key_sign(struct ssh *, struct sshkey *, struct sshkey *, | |||
54 | */ | 54 | */ |
55 | int use_privsep = 0; | 55 | int use_privsep = 0; |
56 | int mm_sshkey_sign(struct sshkey *, u_char **, u_int *, | 56 | int mm_sshkey_sign(struct sshkey *, u_char **, u_int *, |
57 | u_char *, u_int, char *, u_int); | 57 | const u_char *, u_int, const char *, const char *, u_int); |
58 | 58 | ||
59 | #ifdef WITH_OPENSSL | 59 | #ifdef WITH_OPENSSL |
60 | DH *mm_choose_dh(int, int, int); | 60 | DH *mm_choose_dh(int, int, int); |
@@ -66,7 +66,8 @@ u_int session_id2_len = 0; | |||
66 | 66 | ||
67 | int | 67 | int |
68 | mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp, | 68 | mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp, |
69 | u_char *data, u_int datalen, char *alg, u_int compat) | 69 | const u_char *data, u_int datalen, const char *alg, const char *sk_provider, |
70 | u_int compat) | ||
70 | { | 71 | { |
71 | return (-1); | 72 | return (-1); |
72 | } | 73 | } |
@@ -568,5 +569,5 @@ _ssh_host_key_sign(struct ssh *ssh, struct sshkey *privkey, | |||
568 | const u_char *data, size_t dlen, const char *alg) | 569 | const u_char *data, size_t dlen, const char *alg) |
569 | { | 570 | { |
570 | return sshkey_sign(privkey, signature, slen, data, dlen, | 571 | return sshkey_sign(privkey, signature, slen, data, dlen, |
571 | alg, ssh->compat); | 572 | alg, NULL, ssh->compat); |
572 | } | 573 | } |