mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -8,8 +8,6 @@ CORE_DEPTH = ../..
|
|||
# MODULE public and private header directories are implicitly REQUIRED.
|
||||
MODULE = nss
|
||||
|
||||
EXPORTS =
|
||||
|
||||
CSRCS = ssltap.c \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ helloExtensionNameString(int ex_num)
|
|||
ex_name = "renegotiation_info";
|
||||
break;
|
||||
default:
|
||||
sprintf(buf, "%d", ex_num);
|
||||
snprintf(buf, sizeof(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,8 +1019,7 @@ 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 */
|
||||
}
|
||||
|
|
@ -1644,8 +1643,7 @@ 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",
|
||||
|
|
@ -1679,8 +1677,7 @@ 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");
|
||||
|
|
@ -2580,6 +2577,8 @@ main(int argc, char *argv[])
|
|||
get_time_string());
|
||||
} while (looparound); /* accept connection and process it. */
|
||||
PR_Close(s_rend);
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue