diff options
author | tb <> | 2023-12-22 13:46:37 +0000 |
---|---|---|
committer | tb <> | 2023-12-22 13:46:37 +0000 |
commit | 44f78a5147d8bbfcf82b507d5fb7839fdf5bfb71 (patch) | |
tree | 8fca8558c96ca28bedd26e3bd4d3fd6a07ee4113 /src/lib | |
parent | 6612855f556c7e41edd82187faf3aea2b969af2d (diff) | |
download | openbsd-44f78a5147d8bbfcf82b507d5fb7839fdf5bfb71.tar.gz openbsd-44f78a5147d8bbfcf82b507d5fb7839fdf5bfb71.tar.bz2 openbsd-44f78a5147d8bbfcf82b507d5fb7839fdf5bfb71.zip |
Rename check_hosts()
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index b54f95fa84..b61162a56a 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.c,v 1.133 2023/12/22 13:45:28 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.134 2023/12/22 13:46:37 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -176,7 +176,7 @@ check_id_error(X509_STORE_CTX *ctx, int errcode) | |||
176 | } | 176 | } |
177 | 177 | ||
178 | static int | 178 | static int |
179 | check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) | 179 | x509_vfy_check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) |
180 | { | 180 | { |
181 | int i, n; | 181 | int i, n; |
182 | char *name; | 182 | char *name; |
@@ -200,7 +200,7 @@ x509_vfy_check_id(X509_STORE_CTX *ctx) | |||
200 | X509_VERIFY_PARAM *vpm = ctx->param; | 200 | X509_VERIFY_PARAM *vpm = ctx->param; |
201 | X509 *x = ctx->cert; | 201 | X509 *x = ctx->cert; |
202 | 202 | ||
203 | if (vpm->hosts && check_hosts(x, vpm) <= 0) { | 203 | if (vpm->hosts && x509_vfy_check_hosts(x, vpm) <= 0) { |
204 | if (!check_id_error(ctx, X509_V_ERR_HOSTNAME_MISMATCH)) | 204 | if (!check_id_error(ctx, X509_V_ERR_HOSTNAME_MISMATCH)) |
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |