re-introduce old nss im too tired for this

This commit is contained in:
wuggy 2026-06-30 06:37:32 +01:00
commit 3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions

View file

@ -8,6 +8,8 @@ CORE_DEPTH = ../..
# MODULE public and private header directories are implicitly REQUIRED.
MODULE = nss
EXPORTS =
CSRCS = ssltap.c \
$(NULL)

View file

@ -827,7 +827,7 @@ helloExtensionNameString(int ex_num)
ex_name = "renegotiation_info";
break;
default:
snprintf(buf, sizeof(buf), "%d", ex_num);
sprintf(buf, "%d", ex_num);
ex_name = (const char *)buf;
break;
}
@ -945,7 +945,7 @@ print_sslv2(DataBufferList *s, unsigned char *recordBuf, unsigned int recordLen)
}
PR_fprintf(PR_STDOUT, "}\n");
break;
/* end of V2 CLientHello Parsing */
/* end of V2 CLientHello Parsing */
case 2: /* Client Master Key */
{
@ -1019,7 +1019,8 @@ print_sslv2(DataBufferList *s, unsigned char *recordBuf, unsigned int recordLen)
for (p =
0;
p < len; p += 2) {
PR_fprintf(PR_STDOUT, "0x%04x ", (PRUint32)(GET_SHORT((pos + p))));
PR_fprintf(PR_STDOUT, "0x%04x ", (PRUint32)(GET_SHORT((pos +
p))));
}
PR_fprintf(PR_STDOUT, " }\n"); /* End of connection id */
}
@ -1643,7 +1644,8 @@ print_ssl3_handshake(unsigned char *recordBuf,
" data = { couldn't save file '%s' }\n",
certFileName);
} else {
PR_Write(cfd, (hsdata + pos),
PR_Write(cfd, (hsdata +
pos),
certlength);
PR_fprintf(PR_STDOUT,
" data = { saved in file '%s' }\n",
@ -1677,7 +1679,8 @@ print_ssl3_handshake(unsigned char *recordBuf,
for (w =
0;
w < reqLength; w++) {
PR_fprintf(PR_STDOUT, " %02x", hsdata[pos + 1 + w]);
PR_fprintf(PR_STDOUT, " %02x", hsdata[pos +
1 + w]);
}
pos += 1 + reqLength;
PR_fprintf(PR_STDOUT, " }\n");
@ -2577,8 +2580,6 @@ main(int argc, char *argv[])
get_time_string());
} while (looparound); /* accept connection and process it. */
PR_Close(s_rend);
if (NSS_Shutdown() != SECSuccess) {
return 1;
}
NSS_Shutdown();
return 0;
}