summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-02-01 15:35:41 +0000
committertb <>2021-02-01 15:35:41 +0000
commita6cc9591e3bac019dd87bed952159a2f5bddb71d (patch)
treeef97eae6a01aa31bd699c9c466d9b85cc6af557d /src
parentcc107c8d772b25c52a0f3d46a8c37763f0b53e1c (diff)
downloadopenbsd-a6cc9591e3bac019dd87bed952159a2f5bddb71d.tar.gz
openbsd-a6cc9591e3bac019dd87bed952159a2f5bddb71d.tar.bz2
openbsd-a6cc9591e3bac019dd87bed952159a2f5bddb71d.zip
Use "EC/RSA key setup failure" to align error with others
ok eric jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libtls/tls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c
index f8f18b9fee..262ec3dbbf 100644
--- a/src/lib/libtls/tls.c
+++ b/src/lib/libtls/tls.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.c,v 1.88 2021/01/26 12:51:22 eric Exp $ */ 1/* $OpenBSD: tls.c,v 1.89 2021/02/01 15:35:41 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -404,14 +404,14 @@ tls_keypair_setup_pkey(struct tls *ctx, struct tls_keypair *keypair, EVP_PKEY *p
404 case EVP_PKEY_RSA: 404 case EVP_PKEY_RSA:
405 if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL || 405 if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL ||
406 RSA_set_ex_data(rsa, 0, keypair->pubkey_hash) == 0) { 406 RSA_set_ex_data(rsa, 0, keypair->pubkey_hash) == 0) {
407 tls_set_errorx(ctx, "failed to setup RSA key"); 407 tls_set_errorx(ctx, "RSA key setup failure");
408 goto err; 408 goto err;
409 } 409 }
410 break; 410 break;
411 case EVP_PKEY_EC: 411 case EVP_PKEY_EC:
412 if ((eckey = EVP_PKEY_get1_EC_KEY(pkey)) == NULL || 412 if ((eckey = EVP_PKEY_get1_EC_KEY(pkey)) == NULL ||
413 ECDSA_set_ex_data(eckey, 0, keypair->pubkey_hash) == 0) { 413 ECDSA_set_ex_data(eckey, 0, keypair->pubkey_hash) == 0) {
414 tls_set_errorx(ctx, "failed to setup EC key"); 414 tls_set_errorx(ctx, "EC key setup failure");
415 goto err; 415 goto err;
416 } 416 }
417 break; 417 break;