X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FInclude%2FLibrary%2FTlsLib.h;h=e71291eaea453bcb914878d8b77d474f13f3178d;hp=b69d5132850a34ab1770a361778d73a94a23b99c;hb=2167c7f7a55b9964912d08aae71879357101ace1;hpb=0878771f0c6d7fcbf3617a530b4d6a49316c7ab9 diff --git a/CryptoPkg/Include/Library/TlsLib.h b/CryptoPkg/Include/Library/TlsLib.h index b69d513285..e71291eaea 100644 --- a/CryptoPkg/Include/Library/TlsLib.h +++ b/CryptoPkg/Include/Library/TlsLib.h @@ -348,13 +348,16 @@ TlsSetConnectionEnd ( This function sets the ciphers for use by a specified TLS object. @param[in] Tls Pointer to a TLS object. - @param[in] CipherId Pointer to a string that contains one or more - ciphers separated by a colon. + @param[in] CipherId Array of UINT16 cipher identifiers. Each UINT16 + cipher identifier comes from the TLS Cipher Suite + Registry of the IANA, interpreting Byte1 and Byte2 + in network (big endian) byte order. @param[in] CipherNum The number of cipher in the list. @retval EFI_SUCCESS The ciphers list was set successfully. @retval EFI_INVALID_PARAMETER The parameter is invalid. - @retval EFI_UNSUPPORTED Unsupported TLS cipher in the list. + @retval EFI_UNSUPPORTED No supported TLS cipher was found in CipherId. + @retval EFI_OUT_OF_RESOURCES Memory allocation failed. **/ EFI_STATUS @@ -523,6 +526,8 @@ TlsSetCertRevocationList ( This function returns the protocol version used by the specified TLS connection. + If Tls is NULL, then ASSERT(). + @param[in] Tls Pointer to the TLS object. @return The protocol version of the specified TLS connection. @@ -540,6 +545,8 @@ TlsGetVersion ( This function returns the connection end (as client or as server) used by the specified TLS connection. + If Tls is NULL, then ASSERT(). + @param[in] Tls Pointer to the TLS object. @return The connection end used by the specified TLS connection. @@ -601,6 +608,8 @@ TlsGetCurrentCompressionId ( This function returns the peer verification mode currently set in the specified TLS connection. + If Tls is NULL, then ASSERT(). + @param[in] Tls Pointer to the TLS object. @return The verification mode set in the specified TLS connection.