|
54 | 54 | #define ossl_cmsci_set_err_string(o,v) rb_iv_set((o), "@error_string", (v)) |
55 | 55 | #define ossl_cmsci_get_err_string(o) rb_iv_get((o), "@error_string") |
56 | 56 |
|
57 | | -VALUE cCMS; |
58 | | -VALUE cCMSContentInfo; |
59 | | -VALUE cCMSSignerInfo; |
60 | | -VALUE cCMSRecipient; |
61 | | -VALUE eCMSError; |
| 57 | +static VALUE cCMS; |
| 58 | +static VALUE cCMSContentInfo; |
| 59 | +static VALUE cCMSSignerInfo; |
| 60 | +#if 0 |
| 61 | +/* not yet implemented. */ |
| 62 | +static VALUE cCMSRecipient; |
| 63 | +#endif |
| 64 | +static VALUE eCMSError; |
62 | 65 |
|
63 | 66 |
|
64 | 67 | static void |
@@ -104,7 +107,7 @@ ossl_cmsci_to_pem(VALUE self) |
104 | 107 | } |
105 | 108 | if (!PEM_write_bio_CMS(out, cmsci)) { |
106 | 109 | BIO_free(out); |
107 | | - ossl_raise(ePKCS7Error, NULL); |
| 110 | + ossl_raise(eCMSError, NULL); |
108 | 111 | } |
109 | 112 | str = ossl_membio2str(out); |
110 | 113 |
|
@@ -423,7 +426,7 @@ ossl_cms_s_sign(int argc, VALUE *argv, VALUE klass) |
423 | 426 | if(!(cms_cinfo = CMS_sign(x509, pkey, x509s, in, flg))){ |
424 | 427 | BIO_free(in); |
425 | 428 | sk_X509_pop_free(x509s, X509_free); |
426 | | - ossl_raise(ePKCS7Error, NULL); |
| 429 | + ossl_raise(eCMSError, NULL); |
427 | 430 | } |
428 | 431 | SetCMSContentInfo(ret, cms_cinfo); |
429 | 432 | ossl_cmsci_set_data(ret, data); |
@@ -470,6 +473,7 @@ Init_ossl_cms(void) |
470 | 473 | rb_define_method(cCMSSignerInfo,"serial", ossl_cmssi_get_serial,0); |
471 | 474 |
|
472 | 475 | #if 0 |
| 476 | + /* not yet implemented. */ |
473 | 477 | rb_define_singleton_method(cCMS, "read_smime", ossl_cms_s_read_smime, 1); |
474 | 478 | rb_define_singleton_method(cCMS, "write_smime", ossl_cms_s_write_smime, -1); |
475 | 479 | rb_define_singleton_method(cCMS, "encrypt", ossl_cms_s_encrypt, -1); |
|
0 commit comments