summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-01Drop some dead codetb1-11/+2
No member of the curve_list[] table has a method set. Thus, curve.meth is always NULL and we never take the EC_GROUP_new(meth) code path. ok jsing
2023-05-01Remove pointless/wrong .meth = 0 entries from curves_list[]tb1-55/+1
2023-05-01Mechanically convert curve_list[] to C99 initializerstb1-55/+325
ok jsing
2023-05-01Clean up handling of nist_curves[]tb1-18/+14
There's no point in introducing a typedef only for two sizeof() calls. We might as well use an anonymous struct for this list. Make it const while there, drop some braces and compare strcmp() return value to 0. ok jsing
2023-05-01Remove ASN1_item_ndef_i2d(3) documentationtb2-35/+5
This was the last public API explicitly named ndef/NDEF for indefinite length encoding, so remove that explanation as well.
2023-05-01First pass of removing low-level ASN.1 streaming docstb14-343/+26
2023-05-01spellingjsg1-3/+3
2023-04-30x509_asn1: make this test pass again after reinstating DER preservationtb1-5/+5
2023-04-30check_complete.pl: update for recent changes in bntb1-4/+3
2023-04-30mandoc -Tlint tells me I forgot to zap a commatb1-2/+2
2023-04-30Remove most documentation pertaining to proxy certificates.tb6-205/+10
Update EXFLAG_PROXY and X509_V_FLAG_ALLOW_PROXY_CERTS documentation since we need to keep them for the time being.
2023-04-30Remove proxy cert api remmnantstb1-9/+1
2023-04-30Remove documentation of BN_generate_prime(), BN_is_prime{,_fasttest}()tb1-85/+4
2023-04-30Remove documentation of BN_zero_ex() and update BN_one() and BN_zero()tb1-22/+3
which are no longer macros (and the latter is no longer deprecated and no longer attempts to allocate memory).
2023-04-30Garbage collect BN_zero_ex()tb1-7/+1
2023-04-30Remove __dead again. Apparently this causes issues for some upstreams.tb1-2/+2
Thanks to orbea for the report
2023-04-30Revert disablement of the encoding cachejob2-4/+17
Without the cache, we verify CRL signatures on bytes that have been pulled through d2i_ -> i2d_, this can cause reordering, which in turn invalidates the signature. for example if in the original CRL revocation entries were sorted by date instead of ascending serial number order. There are probably multiple things we can do here, but they will need careful consideration and planning. OK jsing@
2023-04-30Send x509_subject_cmp() to the attictb1-9/+1
This helper has been inside #if 0 for nearly 25 years. Let it go. If we should ever need it, I'm quite confident that we will be able to come up with its one line body on our own.
2023-04-30The policy tree is no moretb9-527/+11
Mop up documentation mentioning it or any of its numerous accessors that almost nothing ever used.
2023-04-30Zap extra blank linetb1-2/+1
2023-04-30Make the descriptions of BIO_get_retry_BIO(3) and BIO_get_retry_reason(3)schwarze1-11/+60
more precise. Among other improvements, describe the three BIO_RR_* constants serving as reason codes.
2023-04-30Slightly improve the documentation of the "oper" parameter byschwarze1-3/+10
explicitly listing the valid arguments, i.e. the BIO_CB_* constants.
2023-04-30Document the eight BIO_CONN_S_* constants that are passed to BIO_info_cb(3)schwarze1-2/+36
as the "state" argument. Document them here because connect BIOs are the only built-in BIO type using these constants.
2023-04-30Mark the five BIO_GHBN_* constants as intentionally undocumented.schwarze1-2/+7
They are intended to be used by BIO_gethostbyname(), which is deprecated in OpenSSL and already marked as intentionally undocumented in LibreSSL. Besides, these constants are completely unused by anything.
2023-04-30whitespacetb1-2/+2
2023-04-30Sort alphabeticallytb1-2/+2
2023-04-30Remove unnecessary targettb1-4/+1
2023-04-30policy test: simplify Makefiletb1-9/+2
2023-04-29Mention a few standard BIO_ctrl(3) command constantsschwarze3-13/+30
that provide type-specific functionality here. While here, fix some wrong return types in the SYNOPSIS.
2023-04-29Mention a few standard BIO_ctrl(3) command constantsschwarze1-2/+7
that provide type-specific functionality here, and add the missing return type to one function prototype.
2023-04-29Mention the type-specific BIO_ctrl(3) command constantsschwarze2-8/+34
in the manual pages of the respective BIO types.
2023-04-29Mention the type-specific BIO_ctrl(3) command constantsschwarze2-16/+40
in the manual pages of the respective BIO type. While here, fix some wrong return types in the SYNOPSIS.
2023-04-28Mark OpenSSLDie() as __deadtb1-2/+2
This tells gcc that OPENSSL_assert() will not return and thus avoids a silly warning that triggers scary gentoo QA warnings. From claudio
2023-04-28Free all libcrypto global state memory before returningjob1-1/+3
Found with the help of Otto's malloc memory leak detector!
2023-04-28Return a non-zero error exit code on any DER cache discrepanciesjob1-3/+3
2023-04-28Fix leaks reported by ASANtb1-5/+1
debugged with job
2023-04-28Too many stupid things whine about these being used uninitializedtb1-2/+2
(which they aren't), so appease them.
2023-04-28Remove preservation and use of cached DER/BER encodings in the d2i/i2d pathsjob2-17/+4
A long time ago a workflow was envisioned for X509, X509_CRL, and X509_REQ structures in which only fields modified after deserialization would need to be re-encoded upon serialization. Unfortunately, over the years, authors would sometimes forget to add code in setter functions to trigger invalidation of previously cached DER encodings. The presence of stale versions of structures can lead to very hard-to-debug issues and cause immense sorrow. Fully removing the concept of caching DER encodings ensures stale versions of structures can never rear their ugly heads again. OK tb@ jsing@
2023-04-28Mark the obsolete PROXY_PARAM and SOCKS BIO_ctrl(3) command constantsschwarze1-0/+2
as intentionally undocumented. Do that here because no related manual pages exist.
2023-04-28Enable policy checking by default now that we are DAG implementation based.beck5-13/+23
This ensures that we will no longer silently ignore a certificate with a critical policy extention by default. ok tb@
2023-04-28Mark a number of BIO_ctrl(3) command constants as intentionallyschwarze5-15/+23
undocumented because they are NOOPs or deprecated.
2023-04-28kill the .Xr to BN_nist_mod_521(3) which no longer existsschwarze1-3/+2
2023-04-28Unifdef LIBRESSL_HAS_POLICY_DAG and remove it from the Makefiletb5-98/+5
with beck
2023-04-28Add BIO_C_SET_MD_CTX to the list of command constants.schwarze1-2/+3
2023-04-28Take the old policy code behind the barntb8-1907/+1
It can go play in the fields with all the other exponential time policy "code". discussed with jsing ok & commit message beck
2023-04-28Document BIO_set_md_ctx(3) and BIO_C_SET_MD_CTX.schwarze1-10/+84
Correct the return types of some macros. Improve the RETURN VALUES section.
2023-04-28The policy test is no longer expected to failtb1-2/+1
2023-04-28Enable the new policy checking code in x509_policy.ctb1-4/+2
ok beck jsing
2023-04-28Silence gcc-4 warnings about sk_sort()tb1-5/+6
Tell it we deliberately ignore the return value, (we really don't care what the old comparison function was).
2023-04-28Remove misinformation, reason had nothing to do with efficiencyjob2-17/+4
"Failure to re-encode on modification is a bug not a feature." OK jsing@