MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / SSLBackend_DescribeError

Function SSLBackend_DescribeError

src/SSL.c:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99cc_bool SSLBackend_DescribeError(cc_result res, cc_string* dst) {
100 switch (res) {
101 case SSL_ERROR_SHIFT | BR_ERR_X509_EXPIRED:
102 String_AppendConst(dst, "The website's SSL certificate is expired or not yet valid");
103 return true;
104 case SSL_ERROR_SHIFT | BR_ERR_X509_NOT_TRUSTED:
105 String_AppendConst(dst, "The website's SSL certificate was issued by an authority that is not trusted");
106 return true;
107 }
108 return false; // TODO: error codes
109}
110
111static void InjectEntropy(SSLContext* ctx) {
112 char buf[32];

Callers 1

Calls 1

String_AppendConstFunction · 0.85

Tested by

no test coverage detected