• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = """
23const char *OBJ_nid2ln(int);
24const char *OBJ_nid2sn(int);
25int OBJ_obj2nid(const ASN1_OBJECT *);
26int OBJ_sn2nid(const char *);
27int OBJ_txt2nid(const char *);
28ASN1_OBJECT *OBJ_txt2obj(const char *, int);
29int OBJ_obj2txt(char *, int, const ASN1_OBJECT *, int);
30"""
31
32CUSTOMIZATIONS = """
33"""
34