]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Update tls_connection_set_verify() documentation to verify_peer=2
authorGlenn Strauss <gstrauss@gluelogic.com>
Tue, 8 Nov 2022 05:05:53 +0000 (00:05 -0500)
committerJouni Malinen <j@w1.fi>
Sun, 20 Nov 2022 16:50:03 +0000 (18:50 +0200)
This new value was added to verify peer certificate if it is provided,
but not reject the TLS handshake if no peer certificate is provided.

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
src/crypto/tls.h

index 7a2ee32dfa7f7bdb6d276f8f498d1fbee22dab33..7bed1830ab5972fb770dca10237a9d1613f16ac2 100644 (file)
@@ -353,7 +353,9 @@ int __must_check tls_global_set_verify(void *tls_ctx, int check_crl,
  * tls_connection_set_verify - Set certificate verification options
  * @tls_ctx: TLS context data from tls_init()
  * @conn: Connection context data from tls_connection_init()
- * @verify_peer: 1 = verify peer certificate
+ * @verify_peer: 0 = do not verify peer certificate, 1 = verify peer
+ *     certificate (require it to be provided), 2 = verify peer certificate if
+ *     provided
  * @flags: Connection flags (TLS_CONN_*)
  * @session_ctx: Session caching context or %NULL to use default
  * @session_ctx_len: Length of @session_ctx in bytes.