mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +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
|
|
@ -37,10 +37,6 @@
|
|||
#include "ocspti.h"
|
||||
#include "ocspi.h"
|
||||
|
||||
#ifndef PORT_Sprintf
|
||||
#define PORT_Sprintf sprintf
|
||||
#endif
|
||||
|
||||
#ifndef PORT_Strstr
|
||||
#define PORT_Strstr strstr
|
||||
#endif
|
||||
|
|
@ -687,7 +683,7 @@ handle_connection(
|
|||
if (!request || !request->tbsRequest ||
|
||||
!request->tbsRequest->requestList ||
|
||||
!request->tbsRequest->requestList[0]) {
|
||||
PORT_Sprintf(msgBuf, "Cannot decode OCSP request.\r\n");
|
||||
snprintf(msgBuf, sizeof(msgBuf), "Cannot decode OCSP request.\r\n");
|
||||
|
||||
iovs[numIOVs].iov_base = msgBuf;
|
||||
iovs[numIOVs].iov_len = PORT_Strlen(msgBuf);
|
||||
|
|
@ -781,7 +777,7 @@ handle_connection(
|
|||
singleResponses, &pwdata);
|
||||
|
||||
if (!ocspResponse) {
|
||||
PORT_Sprintf(msgBuf, "Failed to encode response\r\n");
|
||||
snprintf(msgBuf, sizeof(msgBuf), "Failed to encode response\r\n");
|
||||
iovs[numIOVs].iov_base = msgBuf;
|
||||
iovs[numIOVs].iov_len = PORT_Strlen(msgBuf);
|
||||
numIOVs++;
|
||||
|
|
@ -818,15 +814,15 @@ handle_connection(
|
|||
iovs[numIOVs].iov_len = PORT_Strlen(msgBuf);
|
||||
numIOVs++;
|
||||
} else if (reqLen <= 0) { /* hit eof */
|
||||
PORT_Sprintf(msgBuf, "Get or Post incomplete after %d bytes.\r\n",
|
||||
bufDat);
|
||||
snprintf(msgBuf, sizeof(msgBuf), "Get or Post incomplete after %d bytes.\r\n",
|
||||
bufDat);
|
||||
|
||||
iovs[numIOVs].iov_base = msgBuf;
|
||||
iovs[numIOVs].iov_len = PORT_Strlen(msgBuf);
|
||||
numIOVs++;
|
||||
} else if (reqLen < bufDat) {
|
||||
PORT_Sprintf(msgBuf, "Discarded %d characters.\r\n",
|
||||
bufDat - reqLen);
|
||||
snprintf(msgBuf, sizeof(msgBuf), "Discarded %d characters.\r\n",
|
||||
bufDat - reqLen);
|
||||
|
||||
iovs[numIOVs].iov_base = msgBuf;
|
||||
iovs[numIOVs].iov_len = PORT_Strlen(msgBuf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue