/snap/node/11782/include/node/openssl
NameSizeModeActions
archs/-0755rm
aes.h33110644editdlrm
asn1.h940644editdlrm
asn1err.h51690644editdlrm
asn1t.h960644editdlrm
asn1t_asm.h24870644editdlrm
asn1t_no-asm.h27770644editdlrm
asn1_asm.h24680644editdlrm
asn1_no-asm.h27560644editdlrm
async.h30190644editdlrm
asyncerr.h7390644editdlrm
bio.h920644editdlrm
bioerr.h23550644editdlrm
bio_asm.h24490644editdlrm
bio_no-asm.h27350644editdlrm
blowfish.h21360644editdlrm
bn.h223090644editdlrm
bnerr.h13290644editdlrm
bn_conf.h1000644editdlrm
bn_conf_asm.h25060644editdlrm
bn_conf_no-asm.h27980644editdlrm
buffer.h15910644editdlrm
buffererr.h5870644editdlrm
byteorder.h84440644editdlrm
camellia.h32660644editdlrm
cast.h18800644editdlrm
cmac.h14490644editdlrm
cmp.h920644editdlrm
cmperr.h48210644editdlrm
cmp_asm.h24490644editdlrm
cmp_no-asm.h27350644editdlrm
cmp_util.h16270644editdlrm
cms.h920644editdlrm
cmserr.h45470644editdlrm
cms_asm.h24490644editdlrm
cms_no-asm.h27350644editdlrm
comp.h940644editdlrm
comperr.h10020644editdlrm
comp_asm.h24680644editdlrm
comp_no-asm.h27560644editdlrm
conf.h940644editdlrm
conferr.h16970644editdlrm
configuration.h1120644editdlrm
configuration_asm.h26390644editdlrm
configuration_no-asm.h29450644editdlrm
conftypes.h11760644editdlrm
conf_api.h13280644editdlrm
conf_asm.h24680644editdlrm
conf_no-asm.h27560644editdlrm
core.h78200644editdlrm
core_dispatch.h469320644editdlrm
core_names.h1060644editdlrm
core_names_asm.h25820644editdlrm
core_names_no-asm.h28820644editdlrm
core_object.h10470644editdlrm
crmf.h940644editdlrm
crmferr.h18580644editdlrm
crmf_asm.h24680644editdlrm
crmf_no-asm.h27560644editdlrm
crypto.h980644editdlrm
cryptoerr.h19860644editdlrm
cryptoerr_legacy.h480190644editdlrm
crypto_asm.h25060644editdlrm
crypto_no-asm.h27980644editdlrm
ct.h900644editdlrm
cterr.h12410644editdlrm
ct_asm.h24300644editdlrm
ct_no-asm.h27140644editdlrm
decoder.h49070644editdlrm
decodererr.h7400644editdlrm
des.h77640644editdlrm
dh.h130250644editdlrm
dherr.h17020644editdlrm
dsa.h109820644editdlrm
dsaerr.h11640644editdlrm
dso_conf.h1020644editdlrm
dso_conf_asm.h25250644editdlrm
dso_conf_no-asm.h28190644editdlrm
dtls1.h12390644editdlrm
ebcdic.h10250644editdlrm
ec.h623130644editdlrm
ecdh.h3610644editdlrm
ecdsa.h3610644editdlrm
ecerr.h33590644editdlrm
encoder.h45700644editdlrm
encodererr.h7410644editdlrm
engine.h375360644editdlrm
engineerr.h20340644editdlrm
err.h920644editdlrm
err_asm.h24490644editdlrm
err_no-asm.h27350644editdlrm
ess.h920644editdlrm
esserr.h9820644editdlrm
ess_asm.h24490644editdlrm
ess_no-asm.h27350644editdlrm
evp.h949530644editdlrm
evperr.h55280644editdlrm
e_os2.h84450644editdlrm
e_ostime.h11470644editdlrm
fipskey.h1000644editdlrm
fipskey_asm.h25250644editdlrm
fipskey_no-asm.h28190644editdlrm
fips_names.h16380644editdlrm
hmac.h18920644editdlrm
hpke.h60810644editdlrm
http.h47170644editdlrm
httperr.h18920644editdlrm
idea.h22850644editdlrm
indicator.h8180644editdlrm
kdf.h49380644editdlrm
kdferr.h4800644editdlrm
lhash.h960644editdlrm
lhash_asm.h24870644editdlrm
lhash_no-asm.h27770644editdlrm
macros.h107510644editdlrm
md2.h13360644editdlrm
md4.h16100644editdlrm
md5.h16080644editdlrm
mdc2.h13120644editdlrm
ml_kem.h9590644editdlrm
modes.h81350644editdlrm
objects.h75670644editdlrm
objectserr.h6860644editdlrm
obj_mac.h2895250644editdlrm
ocsp.h940644editdlrm
ocsperr.h16360644editdlrm
ocsp_asm.h24680644editdlrm
ocsp_no-asm.h27560644editdlrm
opensslconf.h5100644editdlrm
opensslconf_asm.h69290644editdlrm
opensslv.h1020644editdlrm
opensslv_asm.h25440644editdlrm
opensslv_no-asm.h28400644editdlrm
ossl_typ.h5610644editdlrm
params.h70600644editdlrm
param_build.h23630644editdlrm
param_names.h1080644editdlrm
param_names_asm.h26200644editdlrm
param_names_no-asm.h29240644editdlrm
pem.h226670644editdlrm
pem2.h5230644editdlrm
pemerr.h18360644editdlrm
pkcs7.h960644editdlrm
pkcs7err.h22420644editdlrm
pkcs7_asm.h24870644editdlrm
pkcs7_no-asm.h27770644editdlrm
pkcs12.h980644editdlrm
pkcs12err.h14270644editdlrm
pkcs12_asm.h25060644editdlrm
pkcs12_no-asm.h27980644editdlrm
proverr.h64140644editdlrm
provider.h33830644editdlrm
prov_ssl.h9690644editdlrm
quic.h21010644editdlrm
rand.h40580644editdlrm
randerr.h24860644editdlrm
rc2.h17710644editdlrm
rc4.h10750644editdlrm
rc5.h21460644editdlrm
ripemd.h15370644editdlrm
rsa.h222750644editdlrm
rsaerr.h38610644editdlrm
safestack.h1040644editdlrm
safestack_asm.h25630644editdlrm
safestack_no-asm.h28610644editdlrm
seed.h36110644editdlrm
self_test.h47200644editdlrm
sha.h44040644editdlrm
srp.h920644editdlrm
srp_asm.h24490644editdlrm
srp_no-asm.h27350644editdlrm
srtp.h18880644editdlrm
ssl.h920644editdlrm
ssl2.h6250644editdlrm
ssl3.h127480644editdlrm
sslerr.h154130644editdlrm
sslerr_legacy.h182690644editdlrm
ssl_asm.h24490644editdlrm
ssl_no-asm.h27350644editdlrm
stack.h31220644editdlrm
store.h140080644editdlrm
storeerr.h17020644editdlrm
symhacks.h11020644editdlrm
thread.h8650644editdlrm
tls1.h633210644editdlrm
trace.h108230644editdlrm
ts.h194190644editdlrm
tserr.h20770644editdlrm
txt_db.h16350644editdlrm
types.h73540644editdlrm
ui.h900644editdlrm
uierr.h10620644editdlrm
ui_asm.h24300644editdlrm
ui_no-asm.h27140644editdlrm
whrlpool.h16810644editdlrm
x509.h940644editdlrm
x509err.h23160644editdlrm
x509v3.h980644editdlrm
x509v3err.h35780644editdlrm
x509v3_asm.h25060644editdlrm
x509v3_no-asm.h27980644editdlrm
x509_acert.h1060644editdlrm
x509_acert_asm.h25820644editdlrm
x509_acert_no-asm.h28820644editdlrm
x509_asm.h24680644editdlrm
x509_no-asm.h27560644editdlrm
x509_vfy.h1020644editdlrm
x509_vfy_asm.h25440644editdlrm
x509_vfy_no-asm.h28400644editdlrm
Edit: /snap/node/11782/include/node/openssl/objects.h (7567B)
/* * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #ifndef OPENSSL_OBJECTS_H #define OPENSSL_OBJECTS_H #pragma once #include #ifndef OPENSSL_NO_DEPRECATED_3_0 #define HEADER_OBJECTS_H #endif #include #include #include #include #define OBJ_NAME_TYPE_UNDEF 0x00 #define OBJ_NAME_TYPE_MD_METH 0x01 #define OBJ_NAME_TYPE_CIPHER_METH 0x02 #define OBJ_NAME_TYPE_PKEY_METH 0x03 #define OBJ_NAME_TYPE_COMP_METH 0x04 #define OBJ_NAME_TYPE_MAC_METH 0x05 #define OBJ_NAME_TYPE_KDF_METH 0x06 #define OBJ_NAME_TYPE_NUM 0x07 #define OBJ_NAME_ALIAS 0x8000 #define OBJ_BSEARCH_VALUE_ON_NOMATCH 0x01 #define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH 0x02 #ifdef __cplusplus extern "C" { #endif typedef struct obj_name_st { int type; int alias; const char *name; const char *data; } OBJ_NAME; #define OBJ_create_and_add_object(a, b, c) OBJ_create(a, b, c) int OBJ_NAME_init(void); int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), int (*cmp_func)(const char *, const char *), void (*free_func)(const char *, int, const char *)); const char *OBJ_NAME_get(const char *name, int type); int OBJ_NAME_add(const char *name, int type, const char *data); int OBJ_NAME_remove(const char *name, int type); void OBJ_NAME_cleanup(int type); /* -1 for everything */ void OBJ_NAME_do_all(int type, void (*fn)(const OBJ_NAME *, void *arg), void *arg); void OBJ_NAME_do_all_sorted(int type, void (*fn)(const OBJ_NAME *, void *arg), void *arg); DECLARE_ASN1_DUP_FUNCTION_name(ASN1_OBJECT, OBJ) ASN1_OBJECT *OBJ_nid2obj(int n); const char *OBJ_nid2ln(int n); const char *OBJ_nid2sn(int n); int OBJ_obj2nid(const ASN1_OBJECT *o); ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name); int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name); int OBJ_txt2nid(const char *s); int OBJ_ln2nid(const char *s); int OBJ_sn2nid(const char *s); int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b); const void *OBJ_bsearch_(const void *key, const void *base, int num, int size, int (*cmp)(const void *, const void *)); const void *OBJ_bsearch_ex_(const void *key, const void *base, int num, int size, int (*cmp)(const void *, const void *), int flags); #define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \ static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \ static int nm##_cmp(type1 const *, type2 const *); \ scope type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) #define DECLARE_OBJ_BSEARCH_CMP_FN(type1, type2, cmp) \ _DECLARE_OBJ_BSEARCH_CMP_FN(static, type1, type2, cmp) #define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) /*- * Unsolved problem: if a type is actually a pointer type, like * nid_triple is, then its impossible to get a const where you need * it. Consider: * * typedef int nid_triple[3]; * const void *a_; * const nid_triple const *a = a_; * * The assignment discards a const because what you really want is: * * const int const * const *a = a_; * * But if you do that, you lose the fact that a is an array of 3 ints, * which breaks comparison functions. * * Thus we end up having to cast, sadly, or unpack the * declarations. Or, as I finally did in this case, declare nid_triple * to be a struct, which it should have been in the first place. * * Ben, August 2008. * * Also, strictly speaking not all types need be const, but handling * the non-constness means a lot of complication, and in practice * comparison routines do always not touch their arguments. */ #define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \ { \ type1 const *a = a_; \ type2 const *b = b_; \ return nm##_cmp(a, b); \ } \ static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \ { \ return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \ nm##_cmp_BSEARCH_CMP_FN); \ } \ extern void dummy_prototype(void) #define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \ { \ type1 const *a = a_; \ type2 const *b = b_; \ return nm##_cmp(a, b); \ } \ type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \ { \ return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \ nm##_cmp_BSEARCH_CMP_FN); \ } \ extern void dummy_prototype(void) #define OBJ_bsearch(type1, key, type2, base, num, cmp) \ ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1, key), CHECKED_PTR_OF(type2, base), \ num, sizeof(type2), \ ((void)CHECKED_PTR_OF(type1, cmp##_type_1), \ (void)CHECKED_PTR_OF(type2, cmp##_type_2), \ cmp##_BSEARCH_CMP_FN))) #define OBJ_bsearch_ex(type1, key, type2, base, num, cmp, flags) \ ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1, key), CHECKED_PTR_OF(type2, base), \ num, sizeof(type2), \ ((void)CHECKED_PTR_OF(type1, cmp##_type_1), \ (void)type_2 = CHECKED_PTR_OF(type2, cmp##_type_2), \ cmp##_BSEARCH_CMP_FN)), \ flags) int OBJ_new_nid(int num); int OBJ_add_object(const ASN1_OBJECT *obj); int OBJ_create(const char *oid, const char *sn, const char *ln); #ifndef OPENSSL_NO_DEPRECATED_1_1_0 #define OBJ_cleanup() \ while (0) \ continue #endif int OBJ_create_objects(BIO *in); size_t OBJ_length(const ASN1_OBJECT *obj); const unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj); int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid); int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid); int OBJ_add_sigid(int signid, int dig_id, int pkey_id); void OBJ_sigid_free(void); #define SN_ac_auditEntity SN_ac_auditIdentity #ifdef __cplusplus } #endif #endif