mirror of
https://github.com/vxcontrol/lualibs-openssl.git
synced 2026-07-01 10:05:31 -04:00
unimportant
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/asn1.h
|
||||
enum {
|
||||
V_ASN1_UNIVERSAL = 0x00,
|
||||
@@ -686,3 +688,4 @@ enum {
|
||||
ASN1_R_WRONG_PUBLIC_KEY_TYPE = 200,
|
||||
ASN1_R_WRONG_TAG = 168,
|
||||
};
|
||||
]]
|
||||
|
||||
+3
-2
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/bio.h
|
||||
enum {
|
||||
BIO_TYPE_DESCRIPTOR = 0x0100,
|
||||
@@ -585,5 +587,4 @@ enum {
|
||||
BIO_R_WRITE_TO_READ_ONLY_BIO = 126,
|
||||
BIO_R_WSASTARTUP = 122,
|
||||
};
|
||||
|
||||
|
||||
]]
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/bn.h
|
||||
enum {
|
||||
BN_ULONG = unsigned long long,
|
||||
@@ -357,4 +359,4 @@ enum {
|
||||
BN_R_TOO_MANY_ITERATIONS = 113,
|
||||
BN_R_TOO_MANY_TEMPORARY_VARIABLES = 109,
|
||||
};
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/buffer.h
|
||||
#define BUF_strdup(s) OPENSSL_strdup(s)
|
||||
#define BUF_strndup(s,size) OPENSSL_strndup(s, size)
|
||||
@@ -28,3 +30,4 @@ enum {
|
||||
BUF_F_BUF_MEM_GROW_CLEAN = 105,
|
||||
BUF_F_BUF_MEM_NEW = 101,
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/dh.h
|
||||
enum {
|
||||
OPENSSL_DH_MAX_MODULUS_BITS = 10000,
|
||||
@@ -214,3 +216,5 @@ enum {
|
||||
DH_R_SHARED_INFO_ERROR = 113,
|
||||
DH_R_UNABLE_TO_CHECK_GENERATOR = 121,
|
||||
};
|
||||
]]
|
||||
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/dsa.h
|
||||
enum {
|
||||
OPENSSL_DSA_MAX_MODULUS_BITS = 10000,
|
||||
@@ -172,4 +174,4 @@ enum {
|
||||
DSA_R_Q_NOT_PRIME = 113,
|
||||
DSA_R_SEED_LEN_SMALL = 110,
|
||||
};
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/ec.h
|
||||
enum {
|
||||
OPENSSL_ECC_MAX_FIELD_BITS = 661,
|
||||
@@ -608,3 +610,4 @@ enum {
|
||||
EC_R_WRONG_CURVE_PARAMETERS = 145,
|
||||
EC_R_WRONG_ORDER = 130,
|
||||
};
|
||||
]]
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/err.h
|
||||
#define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e)
|
||||
enum {
|
||||
@@ -197,4 +199,4 @@ int ERR_get_next_error_library(void);
|
||||
int ERR_set_mark(void);
|
||||
int ERR_pop_to_mark(void);
|
||||
int ERR_clear_last_mark(void);
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/evp.h
|
||||
enum {
|
||||
EVP_MAX_MD_SIZE = 64,
|
||||
@@ -1395,3 +1397,4 @@ enum {
|
||||
EVP_R_WRONG_FINAL_BLOCK_LENGTH = 109,
|
||||
EVP_R_XTS_DUPLICATED_KEYS = 183,
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/lhash.h
|
||||
typedef struct lhash_node_st OPENSSL_LH_NODE;
|
||||
typedef int (*OPENSSL_LH_COMPFUNC) (const void *, const void *);
|
||||
@@ -62,3 +64,4 @@ enum {
|
||||
#define int_implement_lhash_doall(type,argtype,cbargtype) static ossl_unused ossl_inline void lh_ ##type ##_doall_ ##argtype(LHASH_OF(type) *lh, void (*fn)(cbargtype *, argtype *), argtype *arg) { OPENSSL_LH_doall_arg((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNCARG)fn, (void *)arg); } LHASH_OF(type)
|
||||
struct lhash_st_OPENSSL_STRING { union lh_OPENSSL_STRING_dummy { void* d1; unsigned long d2; int d3; } dummy; }; static inline struct lhash_st_OPENSSL_STRING * lh_OPENSSL_STRING_new(unsigned long (*hfn)(const OPENSSL_STRING *), int (*cfn)(const OPENSSL_STRING *, const OPENSSL_STRING *)) { return (struct lhash_st_OPENSSL_STRING *) OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_free(struct lhash_st_OPENSSL_STRING *lh) { OPENSSL_LH_free((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline OPENSSL_STRING *lh_OPENSSL_STRING_insert(struct lhash_st_OPENSSL_STRING *lh, OPENSSL_STRING *d) { return (OPENSSL_STRING *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline OPENSSL_STRING *lh_OPENSSL_STRING_delete(struct lhash_st_OPENSSL_STRING *lh, const OPENSSL_STRING *d) { return (OPENSSL_STRING *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline OPENSSL_STRING *lh_OPENSSL_STRING_retrieve(struct lhash_st_OPENSSL_STRING *lh, const OPENSSL_STRING *d) { return (OPENSSL_STRING *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline int lh_OPENSSL_STRING_error(struct lhash_st_OPENSSL_STRING *lh) { return OPENSSL_LH_error((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline unsigned long lh_OPENSSL_STRING_num_items(struct lhash_st_OPENSSL_STRING *lh) { return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_node_stats_bio(const struct lhash_st_OPENSSL_STRING *lh, BIO *out) { OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_node_usage_stats_bio(const struct lhash_st_OPENSSL_STRING *lh, BIO *out) { OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_stats_bio(const struct lhash_st_OPENSSL_STRING *lh, BIO *out) { OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline unsigned long lh_OPENSSL_STRING_get_down_load(struct lhash_st_OPENSSL_STRING *lh) { return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_set_down_load(struct lhash_st_OPENSSL_STRING *lh, unsigned long dl) { OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); } static __attribute__((unused)) inline void lh_OPENSSL_STRING_doall(struct lhash_st_OPENSSL_STRING *lh, void (*doall)(OPENSSL_STRING *)) { OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); } struct lhash_st_OPENSSL_STRING;
|
||||
struct lhash_st_OPENSSL_CSTRING { union lh_OPENSSL_CSTRING_dummy { void* d1; unsigned long d2; int d3; } dummy; }; static inline struct lhash_st_OPENSSL_CSTRING * lh_OPENSSL_CSTRING_new(unsigned long (*hfn)(const OPENSSL_CSTRING *), int (*cfn)(const OPENSSL_CSTRING *, const OPENSSL_CSTRING *)) { return (struct lhash_st_OPENSSL_CSTRING *) OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_free(struct lhash_st_OPENSSL_CSTRING *lh) { OPENSSL_LH_free((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline OPENSSL_CSTRING *lh_OPENSSL_CSTRING_insert(struct lhash_st_OPENSSL_CSTRING *lh, OPENSSL_CSTRING *d) { return (OPENSSL_CSTRING *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline OPENSSL_CSTRING *lh_OPENSSL_CSTRING_delete(struct lhash_st_OPENSSL_CSTRING *lh, const OPENSSL_CSTRING *d) { return (OPENSSL_CSTRING *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline OPENSSL_CSTRING *lh_OPENSSL_CSTRING_retrieve(struct lhash_st_OPENSSL_CSTRING *lh, const OPENSSL_CSTRING *d) { return (OPENSSL_CSTRING *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); } static __attribute__((unused)) inline int lh_OPENSSL_CSTRING_error(struct lhash_st_OPENSSL_CSTRING *lh) { return OPENSSL_LH_error((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline unsigned long lh_OPENSSL_CSTRING_num_items(struct lhash_st_OPENSSL_CSTRING *lh) { return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_node_stats_bio(const struct lhash_st_OPENSSL_CSTRING *lh, BIO *out) { OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_node_usage_stats_bio(const struct lhash_st_OPENSSL_CSTRING *lh, BIO *out) { OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_stats_bio(const struct lhash_st_OPENSSL_CSTRING *lh, BIO *out) { OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); } static __attribute__((unused)) inline unsigned long lh_OPENSSL_CSTRING_get_down_load(struct lhash_st_OPENSSL_CSTRING *lh) { return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_set_down_load(struct lhash_st_OPENSSL_CSTRING *lh, unsigned long dl) { OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); } static __attribute__((unused)) inline void lh_OPENSSL_CSTRING_doall(struct lhash_st_OPENSSL_CSTRING *lh, void (*doall)(OPENSSL_CSTRING *)) { OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); } struct lhash_st_OPENSSL_CSTRING;
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/objects.h
|
||||
enum {
|
||||
OBJ_NAME_TYPE_UNDEF = 0x00,
|
||||
@@ -4059,3 +4061,4 @@ enum {
|
||||
OBJ_R_OID_EXISTS = 102,
|
||||
OBJ_R_UNKNOWN_NID = 101,
|
||||
};
|
||||
]]
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/pem.h
|
||||
enum {
|
||||
PEM_BUFSIZE = 1024,
|
||||
@@ -254,4 +256,4 @@ enum {
|
||||
PEM_R_UNSUPPORTED_ENCRYPTION = 114,
|
||||
PEM_R_UNSUPPORTED_KEY_COMPONENTS = 126,
|
||||
};
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/pkcs7.h
|
||||
typedef struct pkcs7_issuer_and_serial_st {
|
||||
X509_NAME *issuer;
|
||||
@@ -296,4 +298,4 @@ enum {
|
||||
PKCS7_R_WRONG_CONTENT_TYPE = 113,
|
||||
PKCS7_R_WRONG_PKCS7_TYPE = 114,
|
||||
};
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/rand.h
|
||||
struct rand_meth_st {
|
||||
int (*seed) (const void *buf, int num);
|
||||
@@ -91,3 +93,4 @@ enum {
|
||||
RAND_R_UNSUPPORTED_DRBG_FLAGS = 132,
|
||||
RAND_R_UNSUPPORTED_DRBG_TYPE = 120,
|
||||
};
|
||||
]]
|
||||
|
||||
+3
-1
@@ -1,4 +1,5 @@
|
||||
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/rsa.h
|
||||
enum {
|
||||
OPENSSL_RSA_MAX_MODULUS_BITS = 16384,
|
||||
@@ -452,3 +453,4 @@ enum {
|
||||
RSA_R_VALUE_MISSING = 147,
|
||||
RSA_R_WRONG_SIGNATURE_LENGTH = 119,
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/safestack.h
|
||||
typedef char *OPENSSL_STRING;
|
||||
typedef const char *OPENSSL_CSTRING;
|
||||
@@ -64,3 +65,4 @@ enum {
|
||||
sk_sort = OPENSSL_sk_sort,
|
||||
sk_is_sorted = OPENSSL_sk_is_sorted,
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/sha.h
|
||||
enum {
|
||||
SHA_LONG = unsigned int,
|
||||
@@ -62,3 +64,4 @@ int SHA512_Update(SHA512_CTX *c, const void *data, size_t len);
|
||||
int SHA512_Final(unsigned char *md, SHA512_CTX *c);
|
||||
unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md);
|
||||
void SHA512_Transform(SHA512_CTX *c, const unsigned char *data);
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/ui.h
|
||||
UI *UI_new(void);
|
||||
UI *UI_new_method(const UI_METHOD *method);
|
||||
@@ -145,3 +147,4 @@ enum {
|
||||
UI_R_UNKNOWN_TTYGET_ERRNO_VALUE = 108,
|
||||
UI_R_USER_DATA_DUPLICATION_UNSUPPORTED = 112,
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/x509.h
|
||||
enum {
|
||||
X509_SIG_INFO_VALID = 0x1,
|
||||
@@ -849,4 +851,4 @@ enum {
|
||||
X509_R_WRONG_LOOKUP_TYPE = 112,
|
||||
X509_R_WRONG_TYPE = 122,
|
||||
};
|
||||
|
||||
]]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
local ffi = require'ffi'
|
||||
--[[
|
||||
// csrc/openssl/src/include/openssl/x509_vfy.h
|
||||
typedef enum {
|
||||
X509_LU_NONE = 0,
|
||||
@@ -455,3 +457,4 @@ struct stack_st_POLICYQUALINFO *X509_policy_node_get0_qualifiers(const
|
||||
*node);
|
||||
const X509_POLICY_NODE *X509_policy_node_get0_parent(const X509_POLICY_NODE
|
||||
*node);
|
||||
]]
|
||||
|
||||
Reference in New Issue
Block a user