1 /***************************************************************************
2 * Copyright (c) 2024 Microsoft Corporation
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the MIT License which is available at
6 * https://opensource.org/licenses/MIT.
7 *
8 * SPDX-License-Identifier: MIT
9 **************************************************************************/
10
11
12 /**************************************************************************/
13 /**************************************************************************/
14 /** */
15 /** NetX Secure Component */
16 /** */
17 /** Transport Layer Security (TLS) */
18 /** */
19 /**************************************************************************/
20 /**************************************************************************/
21
22 #define NX_SECURE_SOURCE_CODE
23
24
25 /* Include necessary system files. */
26
27 #include "nx_secure_tls.h"
28
29 /**************************************************************************/
30 /* */
31 /* FUNCTION RELEASE */
32 /* */
33 /* _nx_secure_tls_session_client_verify_disable PORTABLE C */
34 /* 6.1 */
35 /* AUTHOR */
36 /* */
37 /* Timothy Stapko, Microsoft Corporation */
38 /* */
39 /* DESCRIPTION */
40 /* */
41 /* This function disables Client Certificate Verification for a */
42 /* particular TLS Session which previously had it enabled. The default */
43 /* behavior is to have Client Certificate Verification disabled. */
44 /* */
45 /* Note that this will only happen for TLS Server sessions. Enabling */
46 /* Client Certificate Verification for TLS Client sessions will have */
47 /* no effect. */
48 /* */
49 /* INPUT */
50 /* */
51 /* tls_session Pointer to TLS Session */
52 /* */
53 /* OUTPUT */
54 /* */
55 /* status Completion status */
56 /* */
57 /* CALLS */
58 /* */
59 /* None */
60 /* */
61 /* CALLED BY */
62 /* */
63 /* Application Code */
64 /* */
65 /* RELEASE HISTORY */
66 /* */
67 /* DATE NAME DESCRIPTION */
68 /* */
69 /* 05-19-2020 Timothy Stapko Initial Version 6.0 */
70 /* 09-30-2020 Timothy Stapko Modified comment(s), */
71 /* resulting in version 6.1 */
72 /* */
73 /**************************************************************************/
_nx_secure_tls_session_client_verify_disable(NX_SECURE_TLS_SESSION * tls_session)74 UINT _nx_secure_tls_session_client_verify_disable(NX_SECURE_TLS_SESSION *tls_session)
75 {
76
77 /* Disable verification of remote Client certificates. */
78 tls_session -> nx_secure_tls_verify_client_certificate = NX_FALSE;
79
80 /* Return completion status. */
81 return(NX_SUCCESS);
82 }
83
84