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
5from __future__ import absolute_import, division, print_function
6
7INCLUDES = """
8#include <openssl/objects.h>
9"""
10
11TYPES = """
12typedef struct {
13    int type;
14    int alias;
15    const char *name;
16    const char *data;
17} OBJ_NAME;
18
19static const long OBJ_NAME_TYPE_MD_METH;
20"""
21
22FUNCTIONS = """
23ASN1_OBJECT *OBJ_nid2obj(int);
24const char *OBJ_nid2ln(int);
25const char *OBJ_nid2sn(int);
26int OBJ_obj2nid(const ASN1_OBJECT *);
27int OBJ_ln2nid(const char *);
28int OBJ_sn2nid(const char *);
29int OBJ_txt2nid(const char *);
30ASN1_OBJECT *OBJ_txt2obj(const char *, int);
31int OBJ_obj2txt(char *, int, const ASN1_OBJECT *, int);
32int OBJ_cmp(const ASN1_OBJECT *, const ASN1_OBJECT *);
33ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *);
34int OBJ_create(const char *, const char *, const char *);
35void OBJ_NAME_do_all(int, void (*) (const OBJ_NAME *, void *), void *);
36/* OBJ_cleanup became a macro in 1.1.0 */
37void OBJ_cleanup(void);
38"""
39
40CUSTOMIZATIONS = """
41"""
42