Fossil SCM

replaced two C++-style comments.

stephan 2011-09-16 18:53 trunk
Commit 693ab93b7de85e9d6ff68f01da10914f982ce3c0
1 file changed +2 -2
+2 -2
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -249,11 +249,11 @@
249249
int j;
250250
for( j = 0; j < mdLength; ++j ) {
251251
BIO_printf(mem, " %02x", md[j]);
252252
}
253253
}
254
- BIO_write(mem, "", 1); // null-terminate mem buffer
254
+ BIO_write(mem, "", 1); /* nul-terminate mem buffer */
255255
BIO_get_mem_data(mem, &desc);
256256
257257
if( hasSavedCertificate ){
258258
warning = "WARNING: Certificate doesn't match the "
259259
"saved certificate for this host!";
@@ -304,11 +304,11 @@
304304
BIO *mem;
305305
char *zCert, *zHost;
306306
307307
mem = BIO_new(BIO_s_mem());
308308
PEM_write_bio_X509(mem, cert);
309
- BIO_write(mem, "", 1); // null-terminate mem buffer
309
+ BIO_write(mem, "", 1); /* nul-terminate mem buffer */
310310
BIO_get_mem_data(mem, &zCert);
311311
zHost = mprintf("cert:%s", g.urlName);
312312
db_set(zHost, zCert, 1);
313313
free(zHost);
314314
BIO_free(mem);
315315
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button