144 Commits (a0afd6ae2cbfcdfc56a355f4b53a6c2583414634)

Author SHA1 Message Date
David Benjamin 32b51305de Widen ASN1_mbstring_copy and ASN1_mbstring_ncopy to ossl_ssize_t 2 years ago
David Benjamin abfd5ebc87 Restore some default cases in tasn_dec.c and tasn_enc.c 2 years ago
David Benjamin a438519f9e Fix miscellaneous size_t truncations 2 years ago
David Benjamin b6a50fd62d Give X509 an ASN1_ITEM again 2 years ago
David Benjamin 8ebfea76db Reject non-minimal lengths in ASN1_get_object 2 years ago
David Benjamin 8c8629bfd8 Represent unknown universal types with V_ASN1_OTHER 2 years ago
David Benjamin 898de8d09e Rewrite c2i_ASN1_OBJECT 2 years ago
David Benjamin 173b63942d Make ASN1_OBJECT_create size_t-clean. 2 years ago
David Benjamin 2cb7b337d0 Rewrite ASN1_OBJECT and ASN1_BOOLEAN d2i/i2d functions. 2 years ago
David Benjamin 860cc73bb2 Reduce type-punning in ASN1_TYPE 2 years ago
David Benjamin 6a231e5c6e Add a test for OPTIONAL CHOICE values 2 years ago
Theo Buehler 3a7dfdb984 Plug a leak in ASN1_item_i2d() 2 years ago
Bob Beck e06f172bf2 Fix use of unitialized cbb on failure case. 2 years ago
David Benjamin 3c6085b6ae Workaround yet more NULL + 0 language bugs 2 years ago
Bob Beck dcabfe2d89 Make OPENSSL_malloc push ERR_R_MALLOC_FAILURE on failure. 2 years ago
David Benjamin 9580424ca8 Bound the overall output size of ASN1_generate_v3 2 years ago
Bob Beck 6e20b77e6b Get rid of time_t usage internally, change to int64_t 2 years ago
David Benjamin 19721cd778 Remove d2i_FOO object reuse 2 years ago
David Benjamin 908b1300ff Don't use object reuse in X509_parse_from_buffer. 2 years ago
David Benjamin f7d37fba96 Fix various malloc failure paths. 2 years ago
Bob Beck 00c70b8d69 Add locale independent implementations of isalpha, isalnum, isdigit, 2 years ago
David Benjamin 0a1af7828f Remove ASN1_TFLG_COMBINE. 2 years ago
David Benjamin afa460c7b9 Unexport and remove support for implicit tagging on ASN1_ITYPE_EXTERN. 2 years ago
David Benjamin 1df70cea5d Correctly handle optional ASN1_ITEM_TEMPLATE types. 2 years ago
David Benjamin 915eb691d3 Add some tests for optional and default ASN1_BOOLEAN. 2 years ago
David Benjamin f81f16cddd Introduce constants for ASN1_BOOLEAN 2 years ago
David Benjamin 97dd962a20 Restore ASN1_TIME_set_string's behavior on NULL. 2 years ago
David Benjamin 1e63b0ce53 Replace comment with static assert. 2 years ago
David Benjamin 9211b80f1e Fix up some integer types in crypto/asn1 2 years ago
David Benjamin 55c32b6429 Use a sized type for asn1t.h flags. 2 years ago
Bob Beck 6cda656e4a Make OPENSSL_tm_to_posix and OPENSSL_posix_to_tm public API 2 years ago
David Benjamin 91ac70dec4 Remove ASN1_PRINTABLE_type. 2 years ago
David Benjamin 1e7cb684a7 Replace malloc/memcpy pairs with memdup. 2 years ago
David Benjamin dc0e354ac3 Release memory earlier when clearing ASN1_ENCODING. 2 years ago
David Benjamin a1dffbfed9 Define CBS/CBB tags as uint32_t with a typedef. 2 years ago
David Benjamin dd81bf7707 Introduce ossl_ssize_t and use it in ASN1_STRING_set. 2 years ago
Bob Beck b2536a2c62 Fix integer overflow in OPENSSL_gmtime_adj 2 years ago
David Benjamin eeb3333f44 Check for overflow in i2c_ASN1_BIT_STRING. 2 years ago
David Benjamin 17832275b7 Replace UTF8_putc with cbb_add_utf8. 2 years ago
David Benjamin cab31f65f1 Add int64 ASN1_INTEGER setters too. 2 years ago
David Benjamin ea2ad5a876 Add ASN1_INTEGER_get_int64 and ASN1_ENUMERATED_get_int64. 2 years ago
David Benjamin db54a42b6a Remove stale comment. 2 years ago
David Benjamin b7d6320be9 Replace OPENSSL_STATIC_ASSERT with static_assert. 2 years ago
Bob Beck ccd665d2aa Make time_t conversions. Give up on the OS provided ones. 2 years ago
David Benjamin f2029899b2 Tidy up ASN1_GENERALIZEDTIME_adj and ASN1_UTCTIME_adj. 2 years ago
David Benjamin 695b2e1d56 Check for invalid UCS-2 and UTF-32 in ASN1_STRING_print_ex. 2 years ago
David Benjamin 507daf391d Check Unicode string encodings in crypto/asn1. 2 years ago
David Benjamin c239ffd055 Remove some unnecessary NULL checks. 2 years ago
David Benjamin fdeb4aa925 Reimplement ASN1_TIME_print with the new parser. 2 years ago
David Benjamin 267997d8c3 Set is_first and is_last correctly with ASN1_STRFLGS_UTF8_CONVERT. 2 years ago