diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-02-01 15:35:42 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-02-01 15:35:42 +0000 |
commit | 490b9ffdf10ecb652519aa791ee2082568d802c3 (patch) | |
tree | ada910f9205c0ecaf0322698404b56afbb529b16 /lib/libtls/tls.c | |
parent | 1c2ffc43cc79e9c94e33820ac039c1770d206fab (diff) |
Use "EC/RSA key setup failure" to align error with others
ok eric jsing
Diffstat (limited to 'lib/libtls/tls.c')
-rw-r--r-- | lib/libtls/tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index f8f18b9feee..262ec3dbbf9 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.88 2021/01/26 12:51:22 eric Exp $ */ +/* $OpenBSD: tls.c,v 1.89 2021/02/01 15:35:41 tb Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -404,14 +404,14 @@ tls_keypair_setup_pkey(struct tls *ctx, struct tls_keypair *keypair, EVP_PKEY *p case EVP_PKEY_RSA: if ((rsa = EVP_PKEY_get1_RSA(pkey)) == NULL || RSA_set_ex_data(rsa, 0, keypair->pubkey_hash) == 0) { - tls_set_errorx(ctx, "failed to setup RSA key"); + tls_set_errorx(ctx, "RSA key setup failure"); goto err; } break; case EVP_PKEY_EC: if ((eckey = EVP_PKEY_get1_EC_KEY(pkey)) == NULL || ECDSA_set_ex_data(eckey, 0, keypair->pubkey_hash) == 0) { - tls_set_errorx(ctx, "failed to setup EC key"); + tls_set_errorx(ctx, "EC key setup failure"); goto err; } break; |