Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Add a simple test that exercises ASN1_STRING_to_UTF8() a little. | tb | 2022-05-16 | 2 | -1/+130 |
| | |||||
* | Tweak regress in such a way that it would have caught the bug in | tb | 2022-05-13 | 1 | -1/+6 |
| | | | | | | d2i_ASN1_OBJECT() fixed in a_object.c r1.48. from jsing | ||||
* | Add tests that decode sequences into ASN.1 strings. | jsing | 2022-04-28 | 1 | -1/+97 |
| | | | | | | | | | | | Test decoding of sequences with length and indefinite length into an ASN.1 string - in this case the ASN.1 is not decoded, rather the octets are stored directly as the content of the string. This exercises a specific path through the ASN.1 decoder. (you know asn1complex is living up to its name when you have to import openssl/asn1t.h directly...) | ||||
* | Ensure we clear the error stack before running tests that print errors. | jsing | 2022-04-27 | 2 | -2/+10 |
| | |||||
* | Enable ASN.1 INTEGER tests with invalid lengths/encodings. | jsing | 2022-04-27 | 1 | -3/+1 |
| | |||||
* | Add ASN1_INTEGER test coverage. | jsing | 2022-04-23 | 1 | -1/+248 |
| | |||||
* | Revise regress for ascii/text to ASN.1 object conversion rewrite. | jsing | 2022-03-19 | 1 | -58/+10 |
| | |||||
* | Add another invalid separator test case. | jsing | 2022-03-19 | 1 | -1/+5 |
| | |||||
* | Check BIO_reset() return value to make gcc happy. | tb | 2022-03-15 | 1 | -2/+5 |
| | |||||
* | Add test coverage for i2a_ASN1_OBJECT() | jsing | 2022-03-05 | 1 | -3/+39 |
| | |||||
* | Provide additional ASN1_OBJECT test coverage. | jsing | 2022-03-02 | 1 | -16/+114 |
| | |||||
* | Add regress coverage for ASN1_OBJECT public interfaces. | jsing | 2022-02-26 | 2 | -1/+399 |
| | |||||
* | Undo static linking and other workarounds that are no longer needed | tb | 2022-01-14 | 1 | -3/+2 |
| | | | | after the bump | ||||
* | Fix asn1x509 build with opaque structures. Link statically for now. | tb | 2022-01-12 | 2 | -20/+25 |
| | |||||
* | Rework Makefile to use regress framework and link asn1basic statically. | tb | 2022-01-12 | 2 | -14/+16 |
| | | | | | It will need this for testing {d2i,i2d}_ASN1_BOOLEAN which will be moved to internal-only in the upcoming bump. | ||||
* | Add regress tests for ASN1_BIT_STRING. | jsing | 2022-01-06 | 1 | -2/+113 |
| | |||||
* | Print the name of the test before we run it. | jsing | 2021-12-24 | 1 | -1/+2 |
| | |||||
* | fix typo: boolean true should decode to 1, not 0 | tb | 2021-12-23 | 1 | -2/+2 |
| | |||||
* | Add regress coverage for ASN1_get_object() | jsing | 2021-12-14 | 1 | -1/+262 |
| | |||||
* | Add regress for ASN1_tag2bit() and ASN1_tag2str() | jsing | 2021-12-14 | 2 | -1/+135 |
| | |||||
* | Merge two bugfixes in ASN1_STRING_TABLE_add(3) and ASN1_STRING_TABLE_get(3) | schwarze | 2021-12-11 | 2 | -2/+131 |
| | | | | | | | | | | | | | | | | | | | | | | from the OpenSSL 1.1.1 branch, which is still under a free license, mostly this commit: commit d35c0ff30b31be9fd5dcf3d552a16feb8de464bc Author: Dr. Stephen Henson <steve@openssl.org> Date: Fri Oct 19 15:06:31 2012 +0000 fix ASN1_STRING_TABLE_add so it can override existing string table values This fixes a segfault in ASN1_STRING_TABLE_add(3), which tried to change a static const entry when called with an nid already in the default table, and it switches the precedence of the two tables in ASN1_STRING_TABLE_get(3). In addition, it changes behaviour in the following minor ways: * Ignore negative minsize and maxsize arguments, not just -1. * Ignore a zero mask and zero flags. It's unclear whether these additional changes make the API absolutely better, but we want compatibility with OpenSSL in these functions. Tweaks & OK tb@. | ||||
* | Fix missing return in asn1_compare_bytes() | jsing | 2021-12-09 | 1 | -1/+2 |
| | |||||
* | Add initial tests for coverage of ASN.1 complex/constructed types. | jsing | 2021-12-09 | 2 | -1/+228 |
| | |||||
* | Add initial tests for coverage of ASN.1 basic/primitive types. | jsing | 2021-12-09 | 2 | -1/+135 |
| | |||||
* | Add regress for {d2i,i2d}_{,DSA_,EC_,RSA_}PUBKEY{,_bio}(). | jsing | 2021-11-30 | 2 | -1/+570 |
| |