/* *Functiontoseterrorcodeonlywhenmeaningfulerrorhasnotalready *beenset. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* look at the current value of PR_GetError, and evaluate it to see *ifitismeaningfulormeaningless(outofcontext). *Ifitismeaningless,replaceitwiththehiLevelError. *Returnsthechosenerrorvalue.
*/ int
ssl_MapLowLevelError(int hiLevelError)
{ int oldErr = PORT_GetError();
switch (oldErr) {
case0: case PR_IO_ERROR: case SEC_ERROR_IO: case SEC_ERROR_BAD_DATA: case SEC_ERROR_LIBRARY_FAILURE: case SEC_ERROR_EXTENSION_NOT_FOUND: case SSL_ERROR_BAD_CLIENT: case SSL_ERROR_BAD_SERVER: case SSL_ERROR_SESSION_NOT_FOUND:
PORT_SetError(hiLevelError); return hiLevelError;
default: /* leave the majority of error codes alone. */ return oldErr;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.