70 |
rc = gpgme_new (&ctx); |
rc = gpgme_new (&ctx); |
71 |
if (rc) |
if (rc) |
72 |
goto leave; |
goto leave; |
73 |
rc = gpg_data_new_from_clipboard (&plain, 0); |
rc = gpg_data_utf8_new_from_clipboard (&plain, 0, NULL); |
74 |
if (rc) |
if (rc) |
75 |
goto leave; |
goto leave; |
76 |
rc = gpgme_data_new (&ciph); |
rc = gpgme_data_new (&ciph); |
86 |
msg_box (NULL, gpgme_strerror (rc), _("Symmetric Encryption"), MB_ERR); |
msg_box (NULL, gpgme_strerror (rc), _("Symmetric Encryption"), MB_ERR); |
87 |
else { |
else { |
88 |
show_msg (GetDesktopWindow (), 1500, _("GnuPG Status: Finished")); |
show_msg (GetDesktopWindow (), 1500, _("GnuPG Status: Finished")); |
89 |
gpg_data_release_and_set_clipboard (ciph, 1); |
gpg_data_release_to_clipboard (ciph, 1); |
90 |
ciph = NULL; |
ciph = NULL; |
91 |
} |
} |
92 |
|
|