objects.py 761 B

123456789101112131415161718192021222324252627282930313233
  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. from __future__ import absolute_import, division, print_function
  5. INCLUDES = """
  6. #include <openssl/objects.h>
  7. """
  8. TYPES = """
  9. typedef struct {
  10. int type;
  11. int alias;
  12. const char *name;
  13. const char *data;
  14. } OBJ_NAME;
  15. static const long OBJ_NAME_TYPE_MD_METH;
  16. """
  17. FUNCTIONS = """
  18. const char *OBJ_nid2ln(int);
  19. const char *OBJ_nid2sn(int);
  20. int OBJ_obj2nid(const ASN1_OBJECT *);
  21. int OBJ_sn2nid(const char *);
  22. int OBJ_txt2nid(const char *);
  23. ASN1_OBJECT *OBJ_txt2obj(const char *, int);
  24. int OBJ_obj2txt(char *, int, const ASN1_OBJECT *, int);
  25. """
  26. CUSTOMIZATIONS = """
  27. """