← Commit list

4a6bdd5899

Viktor Szakats
Viktor Szakats
2025-10-07
SUCCESS Duration: 181s

Subject

examples/usercertinmem: avoid stripping const

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/examples/usercertinmem.c+2 -2
@@ -97,7 +97,7 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
(void)pointer;
/* get a BIO */
- bio = BIO_new_mem_buf((char *)mypem, -1);
+ bio = BIO_new_mem_buf(mypem, -1);
if(!bio) {
printf("BIO_new_mem_buf failed\n");
@@ -118,7 +118,7 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
}
/* create a bio for the RSA key */
- kbio = BIO_new_mem_buf((char *)mykey, -1);
+ kbio = BIO_new_mem_buf(mykey, -1);
if(!kbio) {
printf("BIO_new_mem_buf failed\n");
}