This function returns the protocol version used by the specified TLS\r
connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The protocol version of the specified TLS connection.\r
This function returns the connection end (as client or as server) used by\r
the specified TLS connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The connection end used by the specified TLS connection.\r
This function returns the peer verification mode currently set in the\r
specified TLS connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The verification mode set in the specified TLS connection.\r
This function returns the protocol version used by the specified TLS\r
connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The protocol version of the specified TLS connection.\r
This function returns the connection end (as client or as server) used by\r
the specified TLS connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The connection end used by the specified TLS connection.\r
This function returns the peer verification mode currently set in the\r
specified TLS connection.\r
\r
+ If Tls is NULL, then ASSERT().\r
+\r
@param[in] Tls Pointer to the TLS object.\r
\r
@return The verification mode set in the specified TLS connection.\r
Cert = NULL;\r
TlsConn = (TLS_CONNECTION *) Tls;\r
\r
- if (TlsConn == NULL || TlsConn->Ssl == NULL || DataSize == NULL) {\r
+ if (TlsConn == NULL || TlsConn->Ssl == NULL || DataSize == NULL || (*DataSize != 0 && Data == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r