Fossil SCM
replaced two C++-style comments.
Commit
693ab93b7de85e9d6ff68f01da10914f982ce3c0
Parent
9f5c40cbe71a131…
1 file changed
+2
-2
+2
-2
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -249,11 +249,11 @@ | ||
| 249 | 249 | int j; |
| 250 | 250 | for( j = 0; j < mdLength; ++j ) { |
| 251 | 251 | BIO_printf(mem, " %02x", md[j]); |
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | - BIO_write(mem, "", 1); // null-terminate mem buffer | |
| 254 | + BIO_write(mem, "", 1); /* nul-terminate mem buffer */ | |
| 255 | 255 | BIO_get_mem_data(mem, &desc); |
| 256 | 256 | |
| 257 | 257 | if( hasSavedCertificate ){ |
| 258 | 258 | warning = "WARNING: Certificate doesn't match the " |
| 259 | 259 | "saved certificate for this host!"; |
| @@ -304,11 +304,11 @@ | ||
| 304 | 304 | BIO *mem; |
| 305 | 305 | char *zCert, *zHost; |
| 306 | 306 | |
| 307 | 307 | mem = BIO_new(BIO_s_mem()); |
| 308 | 308 | PEM_write_bio_X509(mem, cert); |
| 309 | - BIO_write(mem, "", 1); // null-terminate mem buffer | |
| 309 | + BIO_write(mem, "", 1); /* nul-terminate mem buffer */ | |
| 310 | 310 | BIO_get_mem_data(mem, &zCert); |
| 311 | 311 | zHost = mprintf("cert:%s", g.urlName); |
| 312 | 312 | db_set(zHost, zCert, 1); |
| 313 | 313 | free(zHost); |
| 314 | 314 | BIO_free(mem); |
| 315 | 315 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -249,11 +249,11 @@ | |
| 249 | int j; |
| 250 | for( j = 0; j < mdLength; ++j ) { |
| 251 | BIO_printf(mem, " %02x", md[j]); |
| 252 | } |
| 253 | } |
| 254 | BIO_write(mem, "", 1); // null-terminate mem buffer |
| 255 | BIO_get_mem_data(mem, &desc); |
| 256 | |
| 257 | if( hasSavedCertificate ){ |
| 258 | warning = "WARNING: Certificate doesn't match the " |
| 259 | "saved certificate for this host!"; |
| @@ -304,11 +304,11 @@ | |
| 304 | BIO *mem; |
| 305 | char *zCert, *zHost; |
| 306 | |
| 307 | mem = BIO_new(BIO_s_mem()); |
| 308 | PEM_write_bio_X509(mem, cert); |
| 309 | BIO_write(mem, "", 1); // null-terminate mem buffer |
| 310 | BIO_get_mem_data(mem, &zCert); |
| 311 | zHost = mprintf("cert:%s", g.urlName); |
| 312 | db_set(zHost, zCert, 1); |
| 313 | free(zHost); |
| 314 | BIO_free(mem); |
| 315 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -249,11 +249,11 @@ | |
| 249 | int j; |
| 250 | for( j = 0; j < mdLength; ++j ) { |
| 251 | BIO_printf(mem, " %02x", md[j]); |
| 252 | } |
| 253 | } |
| 254 | BIO_write(mem, "", 1); /* nul-terminate mem buffer */ |
| 255 | BIO_get_mem_data(mem, &desc); |
| 256 | |
| 257 | if( hasSavedCertificate ){ |
| 258 | warning = "WARNING: Certificate doesn't match the " |
| 259 | "saved certificate for this host!"; |
| @@ -304,11 +304,11 @@ | |
| 304 | BIO *mem; |
| 305 | char *zCert, *zHost; |
| 306 | |
| 307 | mem = BIO_new(BIO_s_mem()); |
| 308 | PEM_write_bio_X509(mem, cert); |
| 309 | BIO_write(mem, "", 1); /* nul-terminate mem buffer */ |
| 310 | BIO_get_mem_data(mem, &zCert); |
| 311 | zHost = mprintf("cert:%s", g.urlName); |
| 312 | db_set(zHost, zCert, 1); |
| 313 | free(zHost); |
| 314 | BIO_free(mem); |
| 315 |