Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/objects.py

raw symbols SCIP
1 # This file is dual licensed under the terms of the Apache License, Version
2 # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 # for complete details.
4
5 from __future__ import absolute_import, division, print_function
6
7 INCLUDES = """
8 #include <openssl/objects.h>
9 """
10
11 TYPES = """
12 typedef struct {
13 int type;
14 int alias;
15 const char *name;
16 const char *data;
17 } OBJ_NAME;
18
19 static const long OBJ_NAME_TYPE_MD_METH;
20 """
21
22 FUNCTIONS = """
23 ASN1_OBJECT *OBJ_nid2obj(int);
24 const char *OBJ_nid2ln(int);
25 const char *OBJ_nid2sn(int);
26 int OBJ_obj2nid(const ASN1_OBJECT *);
27 int OBJ_ln2nid(const char *);
28 int OBJ_sn2nid(const char *);
29 int OBJ_txt2nid(const char *);
30 ASN1_OBJECT *OBJ_txt2obj(const char *, int);
31 int OBJ_obj2txt(char *, int, const ASN1_OBJECT *, int);
32 int OBJ_cmp(const ASN1_OBJECT *, const ASN1_OBJECT *);
33 ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *);
34 int OBJ_create(const char *, const char *, const char *);
35 void OBJ_NAME_do_all(int, void (*) (const OBJ_NAME *, void *), void *);
36 /* OBJ_cleanup became a macro in 1.1.0 */
37 void OBJ_cleanup(void);
38 """
39
40 CUSTOMIZATIONS = """
41 """