diff options
Diffstat (limited to 'src/lib/libtls/tls_conninfo.c')
-rw-r--r-- | src/lib/libtls/tls_conninfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index 08f8714ecd..bc15b85eaf 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_conninfo.c,v 1.25 2024/03/24 11:30:12 beck Exp $ */ | 1 | /* $OpenBSD: tls_conninfo.c,v 1.26 2024/03/26 06:24:52 joshua Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
@@ -79,7 +79,7 @@ tls_get_peer_cert_hash(struct tls *ctx, char **hash) | |||
79 | return (0); | 79 | return (0); |
80 | 80 | ||
81 | if (tls_cert_hash(ctx->ssl_peer_cert, hash) == -1) { | 81 | if (tls_cert_hash(ctx->ssl_peer_cert, hash) == -1) { |
82 | tls_set_errorx(ctx, "unable to compute peer certificate hash - out of memory"); | 82 | tls_set_errorx(ctx, TLS_ERROR_OUT_OF_MEMORY, "out of memory")y |
83 | *hash = NULL; | 83 | *hash = NULL; |
84 | return -1; | 84 | return -1; |
85 | } | 85 | } |
@@ -245,7 +245,7 @@ tls_conninfo_populate(struct tls *ctx) | |||
245 | tls_conninfo_free(ctx->conninfo); | 245 | tls_conninfo_free(ctx->conninfo); |
246 | 246 | ||
247 | if ((ctx->conninfo = calloc(1, sizeof(struct tls_conninfo))) == NULL) { | 247 | if ((ctx->conninfo = calloc(1, sizeof(struct tls_conninfo))) == NULL) { |
248 | tls_set_errorx(ctx, "out of memory"); | 248 | tls_set_errorx(ctx, TLS_ERROR_OUT_OF_MEMORY, "out of memory"); |
249 | goto err; | 249 | goto err; |
250 | } | 250 | } |
251 | 251 | ||