summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_bitst.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move BIT_STRING_BITNAME tables to consttb2024-08-311-4/+4
| | | | | | | | | Another bunch of const correctness fixes for global tables. These are used to map ns cert types, key usage types and CRL reasons to strings and vice versa. By the looks of it, nobody ever figured out how to use this (need I mention that it's convoluted?). ok beck jsing
* Make some more x509 conf stuff internaltb2024-08-311-1/+3
| | | | | | | This internalizes a particularly scary layer of conf used for X.509 extensions. Again unused public API... ok beck jsing
* Unify X.509v3 extension methodstb2024-07-131-4/+22
| | | | | | | | | | | | Use C99 initializers for all structs (some were forgotten). Make all the structs static, call them x509v3_ext_* matching NID_*. Add accessors called x509v3_ext_method_* and use these to implement X509V3_EXT_get_nid(). This adds consistency and avoids a few contortions like grouping a few extensions in arrays to save a couple externs. ok beck jsing
* Make local BIT_STRING_BITNAME variables consttb2024-06-181-3/+3
| | | | | | | | There's no reason for them not to be const. This is a piece of a larger diff that I carry in several of my trees to move more things to rodata or relro. The full diff requires a change to a public header and it's very annoying to have to 'make includes' and recompile the entire lib all the time when hopping from tree to tree.
* Move the CRL reason method into x509_bitst.ctb2023-04-211-1/+32
| | | | | | | The CRL extension handler is completely misplaced in x509_enum.c. Move it to x509_bitst.c until we find a better home for it. This way it is next to the other two extension methods that have the extra usr_data contortion.
* libressl *_namespace.h: adjust *_ALIAS() to require a semicolontb2023-02-161-3/+3
| | | | | | | | | | LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h fix suggested by & ok jsing
* Hide public symbols in libcrypto/x509 .c filesbeck2022-11-141-1/+3
| | | | ok tb@
* Collapse the x509v3 directory into x509.jsing2020-06-041-0/+187
This avoids the need to grep across directories to find functions and prepares for further rototilling and chainsawing. Discussed with tb@ (who also tested the release build)