Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# ext/openssl/ossl_asn1.h

Go to the documentation of this file.

    00001 /*
    00002  * $Id: ossl_asn1.h 27437 2010-04-22 08:04:13Z nobu $
    00003  * 'OpenSSL for Ruby' team members
    00004  * Copyright (C) 2003
    00005  * All rights reserved.
    00006  */
    00007 /*
    00008  * This program is licenced under the same licence as Ruby.
    00009  * (See the file 'LICENCE'.)
    00010  */
    00011 #if !defined(_OSSL_ASN1_H_)
    00012 #define _OSSL_ASN1_H_
    00013
    00014 /*
    00015  * ASN1_DATE conversions
    00016  */
    00017 VALUE asn1time_to_time(ASN1_TIME *);
    00018 time_t time_to_time_t(VALUE);
    00019
    00020 /*
    00021  * ASN1_STRING conversions
    00022  */
    00023 VALUE asn1str_to_str(ASN1_STRING *);
    00024
    00025 /*
    00026  * ASN1_INTEGER conversions
    00027  */
    00028 VALUE asn1integer_to_num(ASN1_INTEGER *);
    00029 ASN1_INTEGER *num_to_asn1integer(VALUE, ASN1_INTEGER *);
    00030
    00031 /*
    00032  * ASN1 module
    00033  */
    00034 extern VALUE mASN1;
    00035 extern VALUE eASN1Error;
    00036
    00037 extern VALUE cASN1Data;
    00038 extern VALUE cASN1Primitive;
    00039 extern VALUE cASN1Constructive;
    00040
    00041 extern VALUE cASN1Boolean;                           /* BOOLEAN           */
    00042 extern VALUE cASN1Integer, cASN1Enumerated;          /* INTEGER           */
    00043 extern VALUE cASN1BitString;                         /* BIT STRING        */
    00044 extern VALUE cASN1OctetString, cASN1UTF8String;      /* STRINGs           */
    00045 extern VALUE cASN1NumericString, cASN1PrintableString;
    00046 extern VALUE cASN1T61String, cASN1VideotexString;
    00047 extern VALUE cASN1IA5String, cASN1GraphicString;
    00048 extern VALUE cASN1ISO64String, cASN1GeneralString;
    00049 extern VALUE cASN1UniversalString, cASN1BMPString;
    00050 extern VALUE cASN1Null;                              /* NULL              */
    00051 extern VALUE cASN1ObjectId;                          /* OBJECT IDENTIFIER */
    00052 extern VALUE cASN1UTCTime, cASN1GeneralizedTime;     /* TIME              */
    00053 extern VALUE cASN1Sequence, cASN1Set;                /* CONSTRUCTIVE      */
    00054
    00055 ASN1_TYPE *ossl_asn1_get_asn1type(VALUE);
    00056
    00057 void Init_ossl_asn1(void);
    00058
    00059 #endif
    00060