@@ -56,19 +56,6 @@ extern VALUE eOSSLError;
5656 }\
5757} while (0)
5858
59- #define OSSL_Check_Instance (obj , klass ) do {\
60- if (!rb_obj_is_instance_of((obj), (klass))) {\
61- ossl_raise(rb_eTypeError, "wrong argument (%"PRIsVALUE")! (Expected instance of %"PRIsVALUE")",\
62- rb_obj_class(obj), (klass));\
63- }\
64- } while (0)
65-
66- #define OSSL_Check_Same_Class (obj1 , obj2 ) do {\
67- if (!rb_obj_is_instance_of((obj1), rb_obj_class(obj2))) {\
68- ossl_raise(rb_eTypeError, "wrong argument type");\
69- }\
70- } while (0)
71-
7259/*
7360 * Type conversions
7461 */
@@ -85,7 +72,6 @@ extern VALUE eOSSLError;
8572/*
8673 * Data Conversion
8774 */
88- STACK_OF (X509 ) * ossl_x509_ary2sk0 (VALUE );
8975STACK_OF (X509 ) * ossl_x509_ary2sk (VALUE );
9076STACK_OF (X509 ) * ossl_protect_x509_ary2sk (VALUE ,int * );
9177VALUE ossl_x509_sk2ary (const STACK_OF (X509 ) * certs );
@@ -129,15 +115,13 @@ int ossl_pem_passwd_cb(char *, int, int, void *);
129115/*
130116 * ERRor messages
131117 */
132- #define OSSL_ErrMsg () ERR_reason_error_string(ERR_get_error())
133118NORETURN (void ossl_raise (VALUE , const char * , ...));
134119/* Clear OpenSSL error queue. If dOSSL is set, rb_warn() them. */
135120void ossl_clear_error (void );
136121
137122/*
138123 * String to DER String
139124 */
140- extern ID ossl_s_to_der ;
141125VALUE ossl_to_der (VALUE );
142126VALUE ossl_to_der_if_possible (VALUE );
143127
@@ -155,20 +139,9 @@ extern VALUE dOSSL;
155139 } \
156140} while (0)
157141
158- #define OSSL_Warning (fmt , ...) do { \
159- OSSL_Debug((fmt), ##__VA_ARGS__); \
160- rb_warning((fmt), ##__VA_ARGS__); \
161- } while (0)
162-
163- #define OSSL_Warn (fmt , ...) do { \
164- OSSL_Debug((fmt), ##__VA_ARGS__); \
165- rb_warn((fmt), ##__VA_ARGS__); \
166- } while (0)
167142#else
168143void ossl_debug (const char * , ...);
169144#define OSSL_Debug ossl_debug
170- #define OSSL_Warning rb_warning
171- #define OSSL_Warn rb_warn
172145#endif
173146
174147/*
0 commit comments