Lines Matching refs:errors

379 set_lastseen_headerline(dearmour_t *dearmour, char *hdr, pgp_error_t **errors)  in set_lastseen_headerline()  argument
386 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in set_lastseen_headerline()
397 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in set_lastseen_headerline()
403 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in set_lastseen_headerline()
410 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in set_lastseen_headerline()
417 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in set_lastseen_headerline()
424 PGP_ERROR_1(errors, PGP_E_R_UNSUPPORTED, "%s", in set_lastseen_headerline()
430 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in set_lastseen_headerline()
447 pgp_error_t **errors, in read_char() argument
461 } else if (pgp_stacked_read(stream, &c, 1, errors, readinfo, in read_char()
474 pgp_error_t **errors, in eat_whitespace() argument
482 c = read_char(stream, dearmour, errors, readinfo, cbinfo, skip); in eat_whitespace()
489 pgp_error_t **errors, in read_and_eat_whitespace() argument
497 c = read_char(stream, dearmour, errors, readinfo, cbinfo, skip); in read_and_eat_whitespace()
517 pgp_error_t **errors, in unarmoured_read_char() argument
525 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 0); in unarmoured_read_char()
582 pgp_error_t **errors, in process_dash_escaped() argument
595 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in process_dash_escaped()
606 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in process_dash_escaped()
612 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in process_dash_escaped()
622 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in process_dash_escaped()
633 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 1); in process_dash_escaped()
638 if ((c = read_char(stream, dearmour, errors, readinfo, cbinfo, in process_dash_escaped()
645 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in process_dash_escaped()
649 if ((c = read_char(stream, dearmour, errors, in process_dash_escaped()
654 PGP_ERROR_1(errors, in process_dash_escaped()
663 if ((c = read_char(stream, dearmour, errors, readinfo, cbinfo, in process_dash_escaped()
744 parse_headers(pgp_stream_t *stream, dearmour_t *dearmour, pgp_error_t **errors, in parse_headers() argument
762 if ((c = read_char(stream, dearmour, errors, readinfo, cbinfo, 1)) < 0) { in parse_headers()
763 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in parse_headers()
788 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in parse_headers()
795 PGP_ERROR_1(errors, in parse_headers()
814 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in parse_headers()
820 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "Invalid header %s", buf); in parse_headers()
848 read4(pgp_stream_t *stream, dearmour_t *dearmour, pgp_error_t **errors, in read4() argument
856 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 1); in read4()
903 decode64(pgp_stream_t *stream, dearmour_t *dearmour, pgp_error_t **errors, in decode64() argument
917 ret = read4(stream, dearmour, errors, readinfo, cbinfo, &c, &n, &l); in decode64()
919 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in decode64()
925 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
934 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
941 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 0); in decode64()
943 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
949 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
973 c = read_and_eat_whitespace(stream, dearmour, errors, readinfo, cbinfo, in decode64()
976 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
980 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 0); in decode64()
982 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
989 ret = read4(stream, dearmour, errors, readinfo, cbinfo, &c, &n, in decode64()
992 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
996 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 1); in decode64()
998 c = eat_whitespace(stream, c, dearmour, errors, readinfo, cbinfo, in decode64()
1001 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
1005 c = read_char(stream, dearmour, errors, readinfo, cbinfo, 0); in decode64()
1007 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in decode64()
1014 if (read_char(stream, dearmour, errors, readinfo, cbinfo, in decode64()
1016 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in decode64()
1038 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in decode64()
1059 armoured_data_reader(pgp_stream_t *stream, void *dest_, size_t length, pgp_error_t **errors, in armoured_data_reader() argument
1096 if ((c = unarmoured_read_char(stream, dearmour, errors, in armoured_data_reader()
1110 if ((c = unarmoured_read_char(stream, dearmour, errors, in armoured_data_reader()
1121 if ((c = unarmoured_read_char(stream, dearmour, errors, in armoured_data_reader()
1138 if ((c = unarmoured_read_char(stream, dearmour, errors, in armoured_data_reader()
1149 if ((c = unarmoured_read_char(stream, dearmour, errors, readinfo, in armoured_data_reader()
1154 if ((c = eat_whitespace(stream, c, dearmour, errors, in armoured_data_reader()
1174 if ((ret = parse_headers(stream, dearmour, errors, readinfo, in armoured_data_reader()
1179 if (!set_lastseen_headerline(dearmour, buf, errors)) { in armoured_data_reader()
1189 ret = process_dash_escaped(stream, dearmour, errors, in armoured_data_reader()
1212 errors, readinfo, cbinfo); in armoured_data_reader()
1248 if ((c = read_char(stream, dearmour, errors, readinfo, in armoured_data_reader()
1258 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, "%s", in armoured_data_reader()
1265 if (!set_lastseen_headerline(dearmour, buf, errors)) { in armoured_data_reader()
1271 if ((c = read_char(stream, dearmour, errors, readinfo, in armoured_data_reader()
1277 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in armoured_data_reader()
1284 if ((c = read_char(stream, dearmour, errors, readinfo, cbinfo, in armoured_data_reader()
1289 if ((c = eat_whitespace(stream, c, dearmour, errors, in armoured_data_reader()
1296 PGP_ERROR_1(errors, PGP_E_R_BAD_FORMAT, in armoured_data_reader()
1302 errors)) { in armoured_data_reader()
1305 if ((ret = parse_headers(stream, dearmour, errors, in armoured_data_reader()
1412 pgp_error_t **errors, in encrypted_data_reader() argument
1490 encrypted->region, errors, readinfo, cbinfo)) { in encrypted_data_reader()
1588 pgp_error_t **errors, in se_ip_data_reader() argument
1628 &decrypted_region, errors, readinfo, cbinfo)) { in se_ip_data_reader()
1644 PGP_ERROR_1(errors, PGP_E_PROTO_BAD_SYMMETRIC_DECRYPT, in se_ip_data_reader()
1670 PGP_ERROR_1(errors, PGP_E_V_BAD_HASH, "%s", in se_ip_data_reader()
1780 fd_reader(pgp_stream_t *stream, void *dest, size_t length, pgp_error_t **errors, in fd_reader() argument
1797 PGP_SYSTEM_ERROR_1(errors, PGP_E_R_READ_FAILED, "read", in fd_reader()
1837 mem_reader(pgp_stream_t *stream, void *dest, size_t length, pgp_error_t **errors, in mem_reader() argument
1844 __PGP_USED(errors); in mem_reader()
2320 pgp_error_t **errors, in hash_reader() argument
2327 r = pgp_stacked_read(stream, dest, length, errors, readinfo, cbinfo); in hash_reader()
2362 mmap_reader(pgp_stream_t *stream, void *dest, size_t length, pgp_error_t **errors, in mmap_reader() argument
2369 __PGP_USED(errors); in mmap_reader()