BoringSSL uses uint32_t, OpenSSL uses 'unsigned 'long'
Closes #10360
#define HAVE_OPENSSL_VERSION
#endif
+#ifdef OPENSSL_IS_BORINGSSL
+typedef uint32_t errcode_t;
+#else
+typedef unsigned long errcode_t;
+#endif
+
/*
* Whether the OpenSSL version has the API needed to support sharing an
* X509_STORE between connections. The API is:
if(ret) {
X509 *ca;
- unsigned long err;
+ errcode_t err;
if(!SSL_CTX_clear_chain_certs(ctx)) {
ret = 0;
}
else {
/* untreated error */
- unsigned long errdetail;
+ errcode_t errdetail;
char error_buffer[256]="";
CURLcode result;
long lerr;
'size_t' */
int err;
char error_buffer[256];
- unsigned long sslerror;
+ errcode_t sslerror;
int memlen;
int rc;
struct ssl_connect_data *connssl = cf->ctx;