Home | History | Annotate | Download | only in err

Lines Matching defs:reason

135   // packed contains the error library and reason, as packed by ERR_PACK.
393 unsigned lib, reason;
400 reason = ERR_GET_REASON(packed_error);
411 BIO_snprintf(reason_buf, sizeof(reason_buf), "reason(%u)", reason);
477 // The |key| is a reason code, depending on the context.
547 const uint32_t reason = ERR_GET_REASON(packed_error);
550 if (reason < 127) {
551 return strerror(reason);
556 if (reason < ERR_NUM_LIBS) {
557 return kLibraryNames[reason];
560 if (reason < 100) {
561 switch (reason) {
577 return err_string_lookup(lib, reason, kOpenSSLReasonValues,
634 void ERR_put_error(int library, int unused, int reason, const char *file,
643 if (library == ERR_LIB_SYS && reason == 0) {
645 reason = GetLastError();
647 reason = errno;
660 error->packed = ERR_PACK(library, reason);