9 int main (int argc
, const char *argv
[]) {
10 if (argc
< 3) return 1;
11 const char *in_fname
= argv
[1],
13 if (-1 == ssl_init()) return 1;
14 str_t
*src
= load_all_file(in_fname
, 512, 2048);
16 ssl_key_t
*key
= ssl_key_init();
17 if (0 == ssl_load_priv_fl("./key.pem", NULL
, key
)) {
19 if (0 == ssl_decrypt_priv(key
, src
->ptr
, src
->len
, &dst
)) {
20 FILE *fp
= fopen(out_fname
, "wt");
22 fwrite(dst
->ptr
, dst
->len
, 1, fp
);