diff options
-rw-r--r-- | ssh-sk-helper.c | 4 | ||||
-rw-r--r-- | ssh-sk.c | 4 | ||||
-rw-r--r-- | ssh-sk.h | 8 | ||||
-rw-r--r-- | sshkey.c | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/ssh-sk-helper.c b/ssh-sk-helper.c index ced00d955..a996f5898 100644 --- a/ssh-sk-helper.c +++ b/ssh-sk-helper.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-sk-helper.c,v 1.1 2019/10/31 21:22:01 djm Exp $ */ | 1 | /* $OpenBSD: ssh-sk-helper.c,v 1.2 2019/11/12 19:30:50 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Google LLC | 3 | * Copyright (c) 2019 Google LLC |
4 | * | 4 | * |
@@ -128,7 +128,7 @@ main(int argc, char **argv) | |||
128 | "msg len %zu, compat 0x%lx", __progname, sshkey_type(key), | 128 | "msg len %zu, compat 0x%lx", __progname, sshkey_type(key), |
129 | provider, msglen, (u_long)compat); | 129 | provider, msglen, (u_long)compat); |
130 | 130 | ||
131 | if ((r = sshsk_ecdsa_sign(provider, key, &sig, &siglen, | 131 | if ((r = sshsk_sign(provider, key, &sig, &siglen, |
132 | message, msglen, compat)) != 0) | 132 | message, msglen, compat)) != 0) |
133 | fatal("Signing failed: %s", ssh_err(r)); | 133 | fatal("Signing failed: %s", ssh_err(r)); |
134 | 134 | ||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-sk.c,v 1.3 2019/11/12 19:30:21 markus Exp $ */ | 1 | /* $OpenBSD: ssh-sk.c,v 1.4 2019/11/12 19:30:50 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Google LLC | 3 | * Copyright (c) 2019 Google LLC |
4 | * | 4 | * |
@@ -342,7 +342,7 @@ out: | |||
342 | } | 342 | } |
343 | 343 | ||
344 | int | 344 | int |
345 | sshsk_ecdsa_sign(const char *provider_path, const struct sshkey *key, | 345 | sshsk_sign(const char *provider_path, const struct sshkey *key, |
346 | u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, | 346 | u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, |
347 | u_int compat) | 347 | u_int compat) |
348 | { | 348 | { |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-sk.h,v 1.2 2019/10/31 21:22:01 djm Exp $ */ | 1 | /* $OpenBSD: ssh-sk.h,v 1.3 2019/11/12 19:30:50 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Google LLC | 3 | * Copyright (c) 2019 Google LLC |
4 | * | 4 | * |
@@ -39,12 +39,12 @@ int sshsk_enroll(const char *provider_path, const char *application, | |||
39 | struct sshbuf *attest); | 39 | struct sshbuf *attest); |
40 | 40 | ||
41 | /* | 41 | /* |
42 | * Calculate an ECDSA_SK signature using the specified key and provider | 42 | * Calculate an ECDSA_SK signature using the specified key |
43 | * middleware. | 43 | * and provider middleware. |
44 | * | 44 | * |
45 | * Returns 0 on success or a ssherr.h error code on failure. | 45 | * Returns 0 on success or a ssherr.h error code on failure. |
46 | */ | 46 | */ |
47 | int sshsk_ecdsa_sign(const char *provider_path, const struct sshkey *key, | 47 | int sshsk_sign(const char *provider_path, const struct sshkey *key, |
48 | u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, | 48 | u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, |
49 | u_int compat); | 49 | u_int compat); |
50 | 50 | ||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshkey.c,v 1.87 2019/11/12 19:29:24 markus Exp $ */ | 1 | /* $OpenBSD: sshkey.c,v 1.88 2019/11/12 19:30:50 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Alexander von Gernler. All rights reserved. | 4 | * Copyright (c) 2008 Alexander von Gernler. All rights reserved. |
@@ -2687,8 +2687,8 @@ sshkey_sign(struct sshkey *key, | |||
2687 | # ifdef ENABLE_SK | 2687 | # ifdef ENABLE_SK |
2688 | case KEY_ECDSA_SK_CERT: | 2688 | case KEY_ECDSA_SK_CERT: |
2689 | case KEY_ECDSA_SK: | 2689 | case KEY_ECDSA_SK: |
2690 | r = sshsk_ecdsa_sign(sk_provider, key, sigp, lenp, | 2690 | r = sshsk_sign(sk_provider, key, sigp, lenp, data, datalen, |
2691 | data, datalen, compat); | 2691 | compat); |
2692 | break; | 2692 | break; |
2693 | # endif /* ENABLE_SK */ | 2693 | # endif /* ENABLE_SK */ |
2694 | # endif /* OPENSSL_HAS_ECC */ | 2694 | # endif /* OPENSSL_HAS_ECC */ |