summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-19Add const to the 'obj' argument of X509_EXTENSION_create_by_OBJ().tb2-5/+5
tested in a bulk build by sthen ok jsing
2018-05-19Add a const qualifier to the aint argument of X509V3_add_value_int()tb2-4/+4
Tested in a bulk build by sthen ok jsing
2018-05-19The 'in' argument of ASN1_STRING_to_UTF8() is now adorned with const.tb2-4/+4
tested in a bulk build by sthen ok jsing
2018-05-19Add a const qualifier to the STACK_OF(X509_EXTENSION) * arguments oftb3-8/+10
X509V3_get_d2i() and X509V3_extensions_print(), and one to the 'title' argument of the latter function. tested in a bulk build by sthen ok jsing
2018-05-19Add a const qualifier to the 'key' argument of i2o_ECPublicKey() andtb7-22/+26
one to the last argument of each one of i2s_ASN1_OCTET_STRING(), s2i_ASN1_OCTET_STRING(), i2s_ASN1_INTEGER(), i2s_ASN1_ENUMERATED(), and i2s_ASN1_ENUMERATED_TABLE(). tested in a bulk build by sthen ok jsing
2018-05-18Fix eyesore indentation of member functions of X509_LOOKUP_METHOD.tb1-12/+11
Sprinkle a few spaces after commas while there. Omitted from earlier commit to reduce noise in the diff.
2018-05-18The 'name', 'value' and 'section' arguments for a2i_GENERAL_NAME(),tb4-28/+24
X509V3_get_value_bool(), X509V3_add_value_bool_nf(), X509V3_get_value_int(), X509V3_get_string(), X509V3_get_section() are now const. While there, remove a stupid cast and two redundant checks. tested in a bulk build by sthen ok jsing
2018-05-18Add const to the 'x' and 'obj' arguments of:tb2-14/+15
X509_get_ext(3), X509_get_ext_by_NID(3), X509_get_ext_by_OBJ(3), X509_get_ext_by_critical(3), X509_get_ext_count(3), X509_get_ext_d2i(3). tested in a bulk by sthen ok jsing
2018-05-18Add const to both arguments of X509_check_private_key(3).tb2-7/+6
tested in a bulk build by sthen input & ok jsing
2018-05-18Add const to the argument of X509_ATTRIBUTE_count(3).tb2-4/+4
tested in a bulk build by sthen ok jsing
2018-05-18Add const qualifiers to the name and xp arguments of X509_TRUST_add(3),tb2-10/+10
X509_TRUST_get0_name(3), X509_TRUST_get_flags(3), and X509_TRUST_get_trust(3). tested in a bulk build by sthen ok jsing
2018-05-18Add const qualifiers to the x and obj qualifiers oftb2-17/+23
X509_REVOKED_get_ext(3), X509_REVOKED_get_ext_count(3), X509_REVOKED_get_ext_by_NID(3), X509_REVOKED_get_ext_by_OBJ(3), X509_REVOKED_get_ext_by_critical(3), X509_REVOKED_get_ext_d2i(3). tested in a bulk build by sthen ok jsing
2018-05-18Add const qualifiers to the 'name', 'sname' and 'X509_PURPOSE *'tb2-15/+15
arguments of X509_PURPOSE_add(3), X509_PURPOSE_get0_name(3), X509_PURPOSE_get0_sname(3), X509_PURPOSE_get_by_sname(3), X509_PURPOSE_get_id(3), X509_PURPOSE_get_trust(3). tested in a bulk build by sthen ok jsing
2018-05-18Add a const qualifier to the 'X509_NAME *' argument oftb3-10/+14
X509_NAME_print{,_ex{,_fp}}(3). tested in a bulk build by sthen ok jsing
2018-05-18Add const to the 'name' argument of X509_NAME_oneline(3).tb2-4/+4
tested in a bulk build by sthen ok jsing
2018-05-18Add const to the 'obj' argument of X509_NAME_get_text_by_OBJ(3).tb2-5/+5
tested in a bulk by sthen ok jsing
2018-05-18Add a const qualififer to the 'name' argument of X509_NAME_get_entry(3)tb2-7/+7
and to the 'obj' argument of X509_NAME_get_index_by_OBJ(3) tested in a bulk build by sthen ok jsing
2018-05-18Add const to the argument of X509_NAME_entry_count().tb2-4/+4
tested in a bulk build by sthen ok jsing
2018-05-18The 'bytes' arguments of X509_NAME_add_entry_by_NID(3) andtb2-6/+6
X509_NAME_add_entry_by_OBJ(3) are now const. tested in a bulk build by sthen ok jsing
2018-05-18Add a const qualifier to the 'X509_NAME_ENTRY *ne' argument oftb2-5/+7
X509_NAME_add_entry(3). tested in a bulk build by sthen, ok jsing
2018-05-18Add const to the argument of X509_NAME_ENTRY_get_data(3).tb2-4/+4
Tested in a bulk build by sthen ok jsing
2018-05-18Add const qualifiers to the 'obj' and 'bytes' arguments oftb2-10/+10
X509_NAME_ENTRY_create_by_NID(3), X509_NAME_ENTRY_create_by_OBJ(3), and X509_NAME_ENTRY_set_object(3). tested in a bulk build by sthen ok jsing
2018-05-18X509_LOOKUP_by_alias() now takes a 'const char str *' andtb2-9/+9
X509_LOOKUP_by_fingerprint() 'const unsigned char *bytes'. tested in a bulk build by sthen ok jsing
2018-05-18X509_EXTENSION_get_critical(3) now takes a 'const ASN1_OBJECT *obj' andtb2-6/+7
X509_EXTENSION_set_object(3) a 'const X509_EXTENSION *ex'. tested in a bulk build by sthen, ok jsing
2018-05-18Add const qualifiers to the X509_CRL *x and ASN1_OBJECT *obj arguments oftb2-16/+20
X509_CRL_get_ext_count(3), X509_CRL_get_ext_by_NID(3), X509_CRL_get_ext_by_OBJ(3), X509_CRL_get_ext_by_critical(3), X509_CRL_get_ext(3), X509_CRL_get_ext_d2i(3). ok jsing
2018-05-17spelling fix;jmc1-3/+3
2018-05-15Link free directory to libcrypto regress test suite.tb1-1/+2
ok jsing
2018-05-15Test DSO_free(NULL).tb1-1/+3
2018-05-15remove _CONF_free_data(). It doesn't belong here.tb1-3/+2
2018-05-15Remove the /* ASN1_item_free */ annotations I added in r1.9 again.tb1-113/+113
They generate a lot of noise in an upcoming diff.
2018-05-14wrap an overlong linetb1-2/+3
2018-05-13Add const to the 'name', 'value', and 'section' arguments oftb2-48/+61
X509V3_EXT_{,n}conf_nid(3), X509_EXT_{,n}conf(3) X509V3{,_CRL,_REQ}_add_{,n}conf(3) as well as the get_string() and get_section() members of X509_CONF_METHOD_st. tested in a bulk build by sthen ok jsing
2018-05-13Fix a malloc() NULL check in ssl3_send_client_kex_ecdhe_ecp(), by addingjsing1-2/+3
the missing goto. While here also remove a set of unnecessary parentheses.
2018-05-13Reference the related accessor EVP_PKEY_get0_asn1(3).schwarze1-5/+6
More logical ordering of EVP_PKEY_base_id(3) and EVP_PKEY_id(3) while here.
2018-05-13Document EVP_PKEY_get0_asn1(3), it is declared in <openssl/evp.h>.schwarze1-4/+13
It makes no sense to have method enumerators public, but the function to retrieve the method of a specific public key undocumented. Besides, it is confusing to have EVP_PKEY_asn1_get0(3) documented without mentioning the very different EVP_PKEY_get0_asn1(3). Remove a duplicate .Xr while here, and reference the related accessor EVP_PKEY_base_id(3). Triggered by tb@ adding a const qualifier to the argument.
2018-05-13Document EVP_PKEY_bits(3).schwarze2-7/+18
It is clearly public because it is declared in <openssl/evp.h>, refenced from EVP_PKEY_asn1_set_public(3), and similar to the documented functions DH_bits(3) and RSA_bits(3). Triggered by tb@ adding a const qualifier to its argument.
2018-05-13More clean up of the RSA key exchange code.jsing1-24/+34
Convert to CBS, use more appropriate variable names and improve validation. Allocate a dedicated buffer to hold the decrypted result, rather than decrypting into the handshake buffer (which is also used to send data). ok beck@ inoguchi@ tb@
2018-05-13Add const to the ASN1_OBJECT argument of TS_TST_INFO_get_ext_by_OBJ(3).tb2-4/+5
Should have been part of the previous commit. Omission noted by schwarze. tested in bulk build by sthen ok jsing
2018-05-13Add const qualifier to the ASN1_OBJ * argument oftb3-11/+11
TS_REQ_get_ext_by_OBJ(3), TS_REQ_set_policy_id(3), TS_RESP_CTX_add_policy(3), TS_RESP_CTX_set_def_policy(3), and TS_TST_INFO_get_ext_by_OBJ(3) tested in a bulk by sthen ok jsing
2018-05-13Add const qualifiers to the char *zone and char *user arguments oftb2-8/+13
SXNET_add_id_INTEGER(3), SXNET_add_id_asc(3), SXNET_add_id_ulong(3) tested in a bulk by sthen ok jsing
2018-05-13In pkcs12.h rev. 1.18 2018/05/13 13:46:55, tb@ added const qualifiersschwarze1-4/+4
to the "pass" and "name" arguments of PKCS12_create(3). Adjust the manual.
2018-05-13In pem.h rev. 1.18 2018/05/13 10:47:54, tb@ added const qualifiersschwarze1-7/+7
to the "name", "header", and "data" arguments of PEM_write(3) and PEM_write_bio(3). Adjust the manual.
2018-05-13In ocsp.h rev. 1.15 2018/05/13 10:42:03, tb@ added const qualifiersschwarze2-6/+6
to the "url" argument of OCSP_crlID_new(3) and to the "urls" argument of OCSP_url_svcloc_new(3). Adjust the manuals.
2018-05-13Add const qualifiers to the X509_SIG * and char * arguments oftb2-4/+5
PKCS8_decrypt(3). tested in a bulk build by sthen ok beck, jsing
2018-05-13In x509.h rev. 1.49 2018/05/13 10:36:35, tb@ added a const qualifierschwarze1-4/+4
to the argument of X509_get_subject_name(3) and X509_get_issuer_name(3). Adjust the manual.
2018-05-13Add const to the argument of PKCS12_pack_authsafes(3).tb2-4/+4
tested in a bulk by sthen ok beck, jsing
2018-05-13Add const to the X509_ALGOR and other arguments oftb3-20/+23
PKCS12_item_decrypt_d2i(3), PKCS12_pbe_crypt(3), PKCS12_newpass(3). tested in a bulk by sthen ok beck, jsing
2018-05-13In ocsp.h rev. 1.14 2018/05/13 10:30:52, tb@ added const qualifiersschwarze1-5/+5
to the arguments of OCSP_cert_id_new(3). Adjust the manual.
2018-05-13Add const to the attr argument of PKCS12_get_attr_gen(3).tb2-4/+5
tested in a bulk by sthen ok beck, jsing
2018-05-13In x509.h rev. 1.48 2018/05/13 10:25:06, tb@ added a const qualifierschwarze1-3/+3
to the "obj" argument of X509v3_get_ext_by_OBJ(3). Adjust the manual.