Parse err codes, e.g. ERR_LIB_X509: 11
(args)
| 35 | |
| 36 | |
| 37 | def parse_err_h(args): |
| 38 | """Parse err codes, e.g. ERR_LIB_X509: 11""" |
| 39 | pat = re.compile(r"#\s*define\W+ERR_LIB_(\w+)\s+(\d+)") |
| 40 | lib2errnum = {} |
| 41 | for match in _file_search(args.err_h, pat): |
| 42 | libname, num = match.groups() |
| 43 | lib2errnum[libname] = int(num) |
| 44 | |
| 45 | return lib2errnum |
| 46 | |
| 47 | |
| 48 | def parse_openssl_error_text(args): |
no test coverage detected