Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Link x509_algor test statically and switch to the internal | tb | 2024-02-29 | 2 | -9/+18 |
| | | | | X509_ALGOR_set0_evp_md() | ||||
* | asn1time: remove some debugging code | tb | 2024-02-18 | 1 | -3/+1 |
| | |||||
* | Tweak previous | tb | 2024-02-18 | 1 | -7/+6 |
| | |||||
* | Adjust regress test for memset() requested by jsing on review | tb | 2024-02-18 | 1 | -4/+18 |
| | |||||
* | Add regress coverage for the new API | tb | 2024-02-18 | 2 | -2/+197 |
| | | | | | This exercises the new API, in particular with respect to overflow behavior around the years 0/9999, which are special for GeneralizedTime/X.509. | ||||
* | Fix asn1_integer_null_data_test() | tb | 2024-02-04 | 1 | -2/+2 |
| | | | | | | | The failed variable was erroneously initialized to 0, making this test always pass. From Christian Andersen, thanks! | ||||
* | Remove the string_table test | tb | 2023-12-15 | 2 | -130/+1 |
| | | | | | | | | If it wasn't for security/xca, all of the ASN1_STRING_TABLE API would hit the attic before long. API design by a trained professional... The table can at least be made immutable, which in turn makes this test entirely pointless. | ||||
* | Provide prototype for X509_ALGOR_set_md() | tb | 2023-10-26 | 1 | -1/+3 |
| | | | | | | Once we remove X509_ALGOR_set_md() we can link this test statically and use X509_ALGOR_set_evp_md() but for now make sure the documented workaround for this garbage API works. | ||||
* | x509_algor: fix error message | tb | 2023-10-12 | 1 | -7/+7 |
| | |||||
* | x509_algor: add a few missing includes | tb | 2023-10-12 | 1 | -1/+4 |
| | |||||
* | x509_algor: Turn expected failure into actual failure now that the API is | tb | 2023-10-11 | 1 | -3/+3 |
| | | | | fixed. | ||||
* | Add preallocation dance for X509_ALGOR_set_md() as documented | tb | 2023-10-11 | 1 | -1/+5 |
| | |||||
* | Add regress coverage for X509_ALGOR_* | tb | 2023-10-11 | 2 | -2/+377 |
| | | | | | | | | | This covers the setters and getters. Serialization and deserialization as well as comparison is already well covered by the pieces of regress using certs. There is currently one printf indicating failure. This will be fixed shortly. | ||||
* | Add regress coverage for ASN1_UTCTIME_cmp_time_t() | tb | 2023-10-05 | 1 | -5/+12 |
| | |||||
* | Add some coverage for ASN1_TIME_cmp_time_t() as well | tb | 2023-10-02 | 1 | -1/+14 |
| | | | | | ASN1_UTCTIME_cmp_tim_t() could be done similarly, but then I have to mess with LIBRESSL_INTERNAL. Let's do this after unlock. | ||||
* | Add regress coverage for ASN1_TIME_compare() | tb | 2023-10-02 | 1 | -1/+78 |
| | |||||
* | Minor asn1time tweaks | tb | 2023-10-02 | 1 | -26/+12 |
| | | | | Sprinkle some (static) const and garbage collect an unused struct. | ||||
* | Ensure no memory is leaked after passing NULL to ASN1_TIME_normalize() | job | 2023-08-30 | 1 | -1/+4 |
| | | | | OK tb@ | ||||
* | Add regress coverage for ASN1_STRING_cmp() | tb | 2023-08-15 | 1 | -1/+147 |
| | |||||
* | Add some regress coverage for various ASN1_STRING types to codify some | tb | 2023-08-15 | 1 | -1/+229 |
| | | | | quirks and invariants. | ||||
* | Add regress coverage for DH and for DSA parameters | tb | 2023-08-11 | 1 | -2/+267 |
| | |||||
* | Assert that test->want != NULL at this point | tb | 2023-05-13 | 1 | -1/+3 |
| | | | | Should make coverity happier | ||||
* | asn1oct: add a couple more tests | tb | 2023-05-12 | 1 | -1/+10 |
| | |||||
* | asn1oct: minor tweak in error message | tb | 2023-05-12 | 1 | -3/+3 |
| | |||||
* | Add regress coverage for {s2i,i2s}_ASN1_OCTET_STRING | tb | 2023-05-12 | 2 | -1/+271 |
| | |||||
* | asn1x509 test: Remove unnecessary line continuations | tb | 2023-02-13 | 1 | -24/+24 |
| | |||||
* | Let bsd.regress.mk take care of running tests | tb | 2022-12-02 | 1 | -8/+1 |
| | |||||
* | Make internal header file names consistent | tb | 2022-11-26 | 2 | -4/+4 |
| | | | | | | | | | | | | | | | | Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook | ||||
* | asn1_string_to_utf8 test: appease coverity | tb | 2022-11-23 | 1 | -2/+8 |
| | | | | | | | | | | Check for ASN_STRING_to_UTF8() failure before checking it matches our expectations. This should convey clearly that test->want_len is never negative. CID 377011 Diagnosed by jsing | ||||
* | link asn1object test statically in preparation for upcoming bump | tb | 2022-09-11 | 1 | -1/+2 |
| | |||||
* | Two more missing long long casts | tb | 2022-09-05 | 1 | -3/+3 |
| | |||||
* | More long long casts for printing time_t | tb | 2022-09-05 | 1 | -3/+3 |
| | |||||
* | Convert from %i to %d | tb | 2022-09-05 | 6 | -56/+56 |
| | |||||
* | cast time_t to long long before printing for portability | tb | 2022-09-05 | 1 | -2/+2 |
| | |||||
* | Ensure a constructed ASN.1 INTEGER is considered invalid when decoding. | jsing | 2022-09-03 | 1 | -1/+15 |
| | |||||
* | Add regress test for the encoding of an ASN1_INTEGER with NULL data. | jsing | 2022-08-28 | 1 | -1/+38 |
| | |||||
* | The asn1time test no longer needs static linking. | tb | 2022-07-12 | 1 | -4/+1 |
| | |||||
* | Check that ASN1_{INTEGER,ENUMERATED}_get(NULL) return 0 as documented. | tb | 2022-07-09 | 1 | -1/+22 |
| | |||||
* | cope with ASN1_TIME_set_string_X509() rename | anton | 2022-07-05 | 1 | -3/+3 |
| | |||||
* | Add valid time test from ruby regress, and check ASN1_time_to_tm | beck | 2022-06-30 | 1 | -1/+27 |
| | | | | against recorded time value. | ||||
* | add valid utc time that should fail to parse as generalized | beck | 2022-06-30 | 1 | -2/+6 |
| | |||||
* | Add tests for times missing seconds, and to be able to test | beck | 2022-06-30 | 1 | -3/+43 |
| | | | | invalid generalized times specifically | ||||
* | Only asn1time needs to be static for now. | tb | 2022-06-28 | 1 | -2/+4 |
| | |||||
* | Make this regress test link staticly and use internal symbols | beck | 2022-06-28 | 1 | -1/+2 |
| | | | | so that it works and compiles during the tb@ pre-bump shuffle(tm). | ||||
* | Add new time manipulation funcitons that OpenSSL has exposed that | beck | 2022-06-27 | 1 | -2/+35 |
| | | | | | | | | the world seems to be using. Symbols.list changes and exposure to wait for minor bump ok jsing@ jca@ | ||||
* | Check pointer argument after {d2i,i2d}_ASN1_{BIT_STRING,BOOLEAN,INTEGER}() | jsing | 2022-06-25 | 1 | -2/+46 |
| | |||||
* | Add regress for ASN1_INTEGER_{get,set}_{u,}int64() | jsing | 2022-06-25 | 1 | -1/+103 |
| | |||||
* | Add regress for ASN1_INTEGER_cmp() | jsing | 2022-06-25 | 1 | -1/+76 |
| | |||||
* | Fix format string: use %zu for size_t, not %lu. | tb | 2022-06-22 | 1 | -3/+3 |
| | |||||
* | Drop bogus DPADD += ${LIBSSL} | tb | 2022-06-19 | 1 | -2/+2 |
| |