text: /* asn1.h
   *
   * Copyright (C) 2006-2017 wolfSSL Inc.
   *
   * This file is part of wolfSSL.
   *
   * wolfSSL is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
   * (at your option) any later version.
   *
   * wolfSSL is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
   */
  
  /* asn1.h for openssl */
  
  #ifndef WOLFSSL_ASN1_H_
  #define WOLFSSL_ASN1_H_
  
  #include <wolfssl/openssl/ssl.h>
  
  #define ASN1_STRING_new      wolfSSL_ASN1_STRING_type_new
  #define ASN1_STRING_type_new wolfSSL_ASN1_STRING_type_new
  #define ASN1_STRING_set      wolfSSL_ASN1_STRING_set
  #define ASN1_STRING_free     wolfSSL_ASN1_STRING_free
  
  #define V_ASN1_OCTET_STRING              0x04 /* tag for ASN1_OCTET_STRING */
  #define V_ASN1_NEG                       0x100
  #define V_ASN1_NEG_INTEGER               (2 | V_ASN1_NEG)
  #define V_ASN1_NEG_ENUMERATED            (10 | V_ASN1_NEG)
  
  /* Type for ASN1_print_ex */
  # define ASN1_STRFLGS_ESC_2253           1
  # define ASN1_STRFLGS_ESC_CTRL           2
  # define ASN1_STRFLGS_ESC_MSB            4
  # define ASN1_STRFLGS_ESC_QUOTE          8
  # define ASN1_STRFLGS_UTF8_CONVERT       0x10
  # define ASN1_STRFLGS_IGNORE_TYPE        0x20
  # define ASN1_STRFLGS_SHOW_TYPE          0x40
  # define ASN1_STRFLGS_DUMP_ALL           0x80
  # define ASN1_STRFLGS_DUMP_UNKNOWN       0x100
  # define ASN1_STRFLGS_DUMP_DER           0x200
  # define ASN1_STRFLGS_RFC2253            (ASN1_STRFLGS_ESC_2253 | \
                                            ASN1_STRFLGS_ESC_CTRL | \
                                            ASN1_STRFLGS_ESC_MSB | \
                                            ASN1_STRFLGS_UTF8_CONVERT | \
                                            ASN1_STRFLGS_DUMP_UNKNOWN | \
                                            ASN1_STRFLGS_DUMP_DER)
  #endif /* WOLFSSL_ASN1_H_ */