summaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr-client.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-07-28 09:57:52 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2020-07-28 09:57:52 +0200
commitd17b838921b38d0474dd1ce1dcb706b05ecb1198 (patch)
treea113a1ebbe5861c8c3e3186b5f477369bea57495 /dirmngr/dirmngr-client.c
parentkbx: Fix short KID and long KID handling for FPR32. (diff)
downloadgnupg2-d17b838921b38d0474dd1ce1dcb706b05ecb1198.tar.xz
gnupg2-d17b838921b38d0474dd1ce1dcb706b05ecb1198.zip
Revert patches applied wrongly.
-- In the experiment for 4994, and patches were wrongly applied. Fixes-commit: 46d185f60397f68830bfdfb99627b29aea5016f1 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'dirmngr/dirmngr-client.c')
-rw-r--r--dirmngr/dirmngr-client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/dirmngr/dirmngr-client.c b/dirmngr/dirmngr-client.c
index f65a7fcfa..1ea10a8ad 100644
--- a/dirmngr/dirmngr-client.c
+++ b/dirmngr/dirmngr-client.c
@@ -208,6 +208,16 @@ main (int argc, char **argv )
* init_common_subsystems, but we don't need that here. */
gpgrt_set_fixed_string_mapper (map_static_macro_string);
+ /* For W32 we need to initialize the socket subsystem. Because we
+ don't use Pth we need to do this explicit. */
+#ifdef HAVE_W32_SYSTEM
+ {
+ WSADATA wsadat;
+
+ WSAStartup (0x202, &wsadat);
+ }
+#endif /*HAVE_W32_SYSTEM*/
+
/* Init Assuan. */
assuan_set_assuan_log_prefix (log_get_prefix (NULL));
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);