aboutsummaryrefslogtreecommitdiffstats
path: root/common/init.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-07-28 07:57:52 +0000
committerNIIBE Yutaka <[email protected]>2020-07-28 07:57:52 +0000
commitd17b838921b38d0474dd1ce1dcb706b05ecb1198 (patch)
treea113a1ebbe5861c8c3e3186b5f477369bea57495 /common/init.c
parentkbx: Fix short KID and long KID handling for FPR32. (diff)
downloadgnupg-d17b838921b38d0474dd1ce1dcb706b05ecb1198.tar.gz
gnupg-d17b838921b38d0474dd1ce1dcb706b05ecb1198.zip
Revert patches applied wrongly.
-- In the experiment for 4994, and patches were wrongly applied. Fixes-commit: 46d185f60397f68830bfdfb99627b29aea5016f1 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/init.c')
-rw-r--r--common/init.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/init.c b/common/init.c
index dbdf40527..073c5cd8a 100644
--- a/common/init.c
+++ b/common/init.c
@@ -161,6 +161,17 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp)
/* Try to auto set the character set. */
set_native_charset (NULL);
+#ifdef HAVE_W32_SYSTEM
+ /* For W32 we need to initialize the socket layer. This is because
+ we use recv and send in libassuan as well as at some other
+ places. */
+ {
+ WSADATA wsadat;
+
+ WSAStartup (0x202, &wsadat);
+ }
+#endif
+
#ifdef HAVE_W32CE_SYSTEM
/* Register the sleep exit function before the estream init so that
the sleep will be called after the estream registered atexit