"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nss/cmd/tstclnt/tstclnt.c" between
nss-3.61.tar.gz and nss-3.62.tar.gz

About: NSS is a set of libraries, APIs, utilities, and documentation designed to support cross-platform development of security-enabled client and server applications. It provides a complete implementation of the crypto libraries used by Mozilla and other companies.

tstclnt.c  (nss-3.61):tstclnt.c  (nss-3.62)
skipping to change at line 1282 skipping to change at line 1282
SECU_PrintError(progName, "SSL_GetEchRetryConfigs failed"); SECU_PrintError(progName, "SSL_GetEchRetryConfigs failed");
return SECFailure; return SECFailure;
} }
char *retriesBase64 = NSSBase64_EncodeItem(NULL, NULL, 0, &retries); char *retriesBase64 = NSSBase64_EncodeItem(NULL, NULL, 0, &retries);
if (!retriesBase64) { if (!retriesBase64) {
SECU_PrintError(progName, "NSSBase64_EncodeItem on retry_configs fai led"); SECU_PrintError(progName, "NSSBase64_EncodeItem on retry_configs fai led");
SECITEM_FreeItem(&retries, PR_FALSE); SECITEM_FreeItem(&retries, PR_FALSE);
return SECFailure; return SECFailure;
} }
// Remove the newline characters that NSSBase64_EncodeItem unhelpfully i
nserts.
char *newline = strstr(retriesBase64, "\r\n");
if (newline) {
memmove(newline, newline + 2, strlen(newline + 2) + 1);
}
fprintf(stderr, "Received ECH retry_configs: \n%s\n", retriesBase64); fprintf(stderr, "Received ECH retry_configs: \n%s\n", retriesBase64);
PORT_Free(retriesBase64); PORT_Free(retriesBase64);
SECITEM_FreeItem(&retries, PR_FALSE); SECITEM_FreeItem(&retries, PR_FALSE);
} }
return SECSuccess; return SECSuccess;
} }
static int static int
run() run()
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)