2 * $Id: ossl_x509.h 11708 2007-02-12 23:01:19Z shyouhei $
3 * 'OpenSSL for Ruby' project
4 * Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
8 * This program is licenced under the same licence as Ruby.
9 * (See the file 'LICENCE'.)
11 #if !defined(_OSSL_X509_H_)
19 void Init_ossl_x509(void);
24 extern VALUE cX509Attr
;
25 extern VALUE eX509AttrError
;
27 VALUE
ossl_x509attr_new(X509_ATTRIBUTE
*);
28 X509_ATTRIBUTE
*DupX509AttrPtr(VALUE
);
29 void Init_ossl_x509attr(void);
34 extern VALUE cX509Cert
;
35 extern VALUE eX509CertError
;
37 VALUE
ossl_x509_new(X509
*);
38 VALUE
ossl_x509_new_from_file(VALUE
);
39 X509
*GetX509CertPtr(VALUE
);
40 X509
*DupX509CertPtr(VALUE
);
41 void Init_ossl_x509cert(void);
46 extern VALUE cX509CRL
;
47 extern VALUE eX509CRLError
;
49 VALUE
ossl_x509crl_new(X509_CRL
*);
50 X509_CRL
*GetX509CRLPtr(VALUE
);
51 X509_CRL
*DupX509CRLPtr(VALUE
);
52 void Init_ossl_x509crl(void);
57 extern VALUE cX509Ext
;
58 extern VALUE cX509ExtFactory
;
59 extern VALUE eX509ExtError
;
61 VALUE
ossl_x509ext_new(X509_EXTENSION
*);
62 X509_EXTENSION
*GetX509ExtPtr(VALUE
);
63 X509_EXTENSION
*DupX509ExtPtr(VALUE
);
64 void Init_ossl_x509ext(void);
69 extern VALUE cX509Name
;
70 extern VALUE eX509NameError
;
72 VALUE
ossl_x509name_new(X509_NAME
*);
73 X509_NAME
*GetX509NamePtr(VALUE
);
74 void Init_ossl_x509name(void);
79 extern VALUE cX509Req
;
80 extern VALUE eX509ReqError
;
82 VALUE
ossl_x509req_new(X509_REQ
*);
83 X509_REQ
*GetX509ReqPtr(VALUE
);
84 X509_REQ
*DupX509ReqPtr(VALUE
);
85 void Init_ossl_x509req(void);
90 extern VALUE cX509Rev
;
91 extern VALUE eX509RevError
;
93 VALUE
ossl_x509revoked_new(X509_REVOKED
*);
94 X509_REVOKED
*DupX509RevokedPtr(VALUE
);
95 void Init_ossl_x509revoked(void);
98 * X509Store and X509StoreContext
100 extern VALUE cX509Store
;
101 extern VALUE cX509StoreContext
;
102 extern VALUE eX509StoreError
;
104 VALUE
ossl_x509store_new(X509_STORE
*);
105 X509_STORE
*GetX509StorePtr(VALUE
);
106 X509_STORE
*DupX509StorePtr(VALUE
);
108 VALUE
ossl_x509stctx_new(X509_STORE_CTX
*);
109 VALUE
ossl_x509stctx_clear_ptr(VALUE
);
110 X509_STORE_CTX
*GetX509StCtxtPtr(VALUE
);
112 void Init_ossl_x509store(void);
114 #endif /* _OSSL_X509_H_ */