Parse extra reasons from crypto/err/openssl.ec. Detected lines are matched against "R _R_ ", e.g., "R SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE 1010".
(args)
| 146 | |
| 147 | |
| 148 | def parse_extra_reasons(args): |
| 149 | """Parse extra reasons from crypto/err/openssl.ec. |
| 150 | |
| 151 | Detected lines are matched against "R <LIBNAME>_R_<ERRNAME> <ERRCODE>", |
| 152 | e.g., "R SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE 1010". |
| 153 | """ |
| 154 | pat = re.compile(r"^R\s+((\w+)_R_(\w+))\s+(\d+)") |
| 155 | for match in _file_search(args.errcodes, pat): |
| 156 | reason, libname, errname, num = match.groups() |
| 157 | yield reason, libname, errname, int(num) |
| 158 | |
| 159 | |
| 160 | def gen_library_codes(args): |
no test coverage detected
searching dependent graphs…