| 97 | } |
| 98 | |
| 99 | cc_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 | |
| 111 | static void InjectEntropy(SSLContext* ctx) { |
| 112 | char buf[32]; |
no test coverage detected