1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-09 23:39:51 +02:00
gnupg/sm
NIIBE Yutaka 95d9761509
sm: Use estream for I/O.
* sm/decrypt.c (gpgsm_decrypt): Use estream for the input.
* sm/encrypt.c (gpgsm_encrypt): Likewise.
* sm/gpgsm.c (open_read): Remove.
(main): Use open_es_fread for gpgsm_import_files.  Fix call of
gpgsm_encrypt, gpgsm_sign, gpgsm_verify and gpgsm_decrypt.
(open_es_fread): Use gnupg_check_special_filename and open_stream_nc.
* sm/gpgsm.h: Fix function declarations.
* sm/import.c (import_one): Use estream for the input.
(reimport_one, gpgsm_import, gpgsm_import_files): Likewise.
* sm/server.c (struct server_local_s): Rename MESSAGE_FD to
MESSAGE_FP.
(close_message_fp): Rename from close_message_fd.
(reset_notify): Follow the change of close_message_fp.
(cmd_encrypt, cmd_decrypt, cmd_verify, cmd_sign): Follow the change of
close_message_fp.  Use open_stream_nc to get estream.
(cmd_import): Likewise.
(cmd_export, cmd_delkeys, gpgsm_server): Follow the change of
close_message_fp.
(cmd_message): Setup MESSAGE_FP with open_stream_nc.
* sm/sign.c (hash_data): Use estream for the input.
(hash_and_copy_data): Likewise.
(gpgsm_sign): Likewise.
* sm/verify.c (hash_data): Use estream_t for FP.
(gpgsm_verify): Use estream_t for IN_FP and DATA_FP.

--

GnuPG-bug-id: 6592
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2023-07-25 10:04:18 +09:00
..
call-agent.c agent: Add trustlist flag "de-vs". 2023-04-03 14:10:33 +02:00
call-dirmngr.c gpgsm: Support SENDCERT_SKI for --call-dirmngr 2023-06-19 14:05:22 +02:00
certchain.c gpgsm: Cache the non-existence of the policy file. 2023-05-04 14:35:31 +02:00
certcheck.c sm: Avoid memory leaks and double double-free 2021-05-20 13:51:47 +02:00
certdump.c gpgsm: New option --no-pretty-dn 2023-03-16 09:46:05 +01:00
certlist.c gpgsm: Improve cert lookup callback from dirmngr. 2023-02-26 19:14:22 +01:00
certreqgen-ui.c gpgsm: Replace all assert calls by log_assert. 2020-07-08 14:40:34 +02:00
certreqgen.c gpgsm: Replace all assert calls by log_assert. 2020-07-08 14:40:34 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
decrypt.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
delete.c sm: Implement delete key in keyboxd mode 2020-09-21 09:20:40 +02:00
encrypt.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
export.c sm: Ask for the password for password based decryption (pwri) 2021-05-17 15:42:27 +02:00
fingerprint.c gpgsm: Allow ECC encryption keys with just keyAgreement specified. 2022-10-25 11:57:23 +02:00
gpgsm-w32info.rc w32: Add missing manifests and set a requestedExecutionLevel. 2023-05-24 12:14:06 +02:00
gpgsm.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
gpgsm.h sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
gpgsm.w32-manifest.in w32: Add missing supportedOS Ids for Windows-10 2023-05-24 14:17:06 +02:00
import.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
keydb.c kbx: Fix datastream_thread and use the data pipe. 2023-06-07 15:26:34 +09:00
keydb.h sm: Implement initial support for keyboxd. 2020-09-10 13:05:17 +02:00
keylist.c gpgsm: Print revocation date and reason in cert listings. 2022-12-05 16:42:08 +01:00
Makefile.am sm: Major rewrite of the PKCS#12 parser 2023-06-28 17:34:19 +02:00
minip12.c gpgsm: Init a diagnostic var. 2023-07-04 09:26:55 +02:00
minip12.h sm: Major rewrite of the PKCS#12 parser 2023-06-28 17:34:19 +02:00
misc.c sm: Print diagnostic about CRL problems due to Tor mode. 2022-04-11 17:57:14 +02:00
passphrase.c gpg,common,scd,sm: Function prototype fixes for modern compiler. 2022-09-13 16:34:00 +09:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
server.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
sign.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00
t-minip12.c sm: Adding missing stuff to the PKCS#12 parser rewrite. 2023-06-29 17:49:10 +02:00
verify.c sm: Use estream for I/O. 2023-07-25 10:04:18 +09:00