92 Commits (c0b87a04dbad59a5b82aa21dec93b487115a8967)

Author SHA1 Message Date
David Benjamin c0b87a04db Re-run clang-format with InsertBraces. 3 years ago
David Benjamin 260a10cccb clang-format remaining directories. 3 years ago
David Benjamin 1f51cfc7d7 Fix duplicate declarations 3 years ago
Bob Beck 652464ec78 Validate ASN.1 times according to RFC 5280 3 years ago
David Benjamin 67d4f28357 Manually fix a few tables in advance of clang-format. 3 years ago
David Benjamin ac57319dd8 Rewrite ASN1_STRING_print_ex escaping. 3 years ago
Bob Beck 0426313667 limit the feature macro stuff to __linux__ 3 years ago
David Benjamin 8b988b8b8d Tidy up how ASN1_STRING_print_ex figures out the type. 3 years ago
Bob Beck 0e0ca82b2e Remove the ASN1_TLC cache. It appears to not help performance. 3 years ago
David Benjamin edbdc240ec Reject [UNIVERSAL 0] in DER/BER element parsers. 3 years ago
David Benjamin ab69425a98 Remove ASN1_ADB_INTEGER. 3 years ago
David Benjamin fdd5260361 Correctly handle LONG_MIN in ASN1_INTEGER_get. 3 years ago
David Benjamin de139712ba Implement ASN1_INTEGER_set_uint64 with ASN1_STRING_set. 3 years ago
David Benjamin bdc35b6361 Rewrite and tighten ASN1_INTEGER encoding and decoding. 3 years ago
David Benjamin 366e886628 Deduplicate the rest of ASN1_INTEGER and ASN1_ENUMERATED. 3 years ago
David Benjamin fa2cd1ee86 Fix theoretical overflow in ASN1_INTEGER_cmp. 3 years ago
David Benjamin 6e25e54b1c Rewrite ASN1_INTEGER tests. 3 years ago
David Benjamin 657c69b3c5 Reimplement ASN1_get_object with CBS. 3 years ago
Thomas Klausner 8a38184183 Use ctype(3) in a more standards-conformant way. 3 years ago
David Benjamin 703cb721ed Add missing assert.h include. 3 years ago
David Benjamin cf8d3ad3ce Check tag class and constructed bit in d2i_ASN1_OBJECT. 3 years ago
David Benjamin 13c67c99d8 Enforce DER rules for BIT STRING values. 3 years ago
David Benjamin ee510f5889 Remove support for indefinite lengths in crypto/asn1. 3 years ago
David Benjamin a70edd47a2 Remove support for constructed strings in crypto/asn1. 3 years ago
David Benjamin 2cbc39a3c0 Trim some undocumented symbols from asn1.h. 3 years ago
David Benjamin 1dcdbdad91 Document and const-correct multi-string types. 3 years ago
David Benjamin a259a54842 Unexport ASN1_OBJECT_new. 3 years ago
David Benjamin efab69bf73 Return 0x80 in all ASN1_get_object error paths. 3 years ago
David Benjamin 45608a1b9f Document and const-correct ASN1_TYPE functions. 3 years ago
David Benjamin 686d05aaa5 Fix error-handling for i2a_ASN1_OBJECT. 3 years ago
David Benjamin 2dc2f1093a Fold i2a_ASN1_ENUMERATED into i2a_ASN1_INTEGER. 3 years ago
David Benjamin a7e807481b Fix BIT STRING comparison in ASN1_STRING_cmp. 3 years ago
David Benjamin 4298fce7d6 Rewrite ASN1_item_pack and ASN1_item_unpack. 3 years ago
David Benjamin 141472c21a Document some more ASN1_ITEM-associated functions. 3 years ago
David Benjamin c11fcb06e7 Const-correct the low-level ASN1 i2d functions. 3 years ago
David Benjamin f6ef1c560a Check tag class and constructed bit in d2i_ASN1_BOOLEAN. 3 years ago
David Benjamin 2f8bf102e3 Use typedefs in i2d and d2i_ASN1_BOOLEAN. 3 years ago
David Benjamin a406ad76ad Make ASN1_NULL an opaque pointer. 3 years ago
David Benjamin f61997b4d7 Make ASN1_STRING_TABLE_add thread-safe and document. 3 years ago
David Benjamin 38890fdef4 Test ASN1_STRING_set_by_NID with custom NIDs. 3 years ago
David Benjamin db93c25244 Test ASN1_STRING_set_by_NID with built-in NIDs. 3 years ago
David Benjamin a50f24c854 Test that built-in ASN1_STRING_TABLEs are sorted. 3 years ago
David Benjamin 4937f05ccd Unwind remnants of ASN1_TFLG_NDEF. 4 years ago
David Benjamin ed5f4e82e6 Remove ASN1_OP_I2D_* callbacks. 4 years ago
David Benjamin afed9f762d Don't read it->funcs without checking it->itype. 4 years ago
David Benjamin 866cccc548 Reject missing required fields in i2d functions. 4 years ago
David Benjamin c9b75aff28 Reject -1 types in ASN1_TYPE and MSTRINGs when encoding. 4 years ago
David Benjamin 6e70be0f87 Correctly handle invalid ASN1_OBJECTs when encoding. 4 years ago
David Benjamin 248ab81760 Check for invalid CHOICE selectors in i2d functions. 4 years ago
David Benjamin 27b31cfc56 Correctly propagate errors in i2d functions. 4 years ago