diff options
author | Martin Willi <martin@revosec.ch> | 2013-10-16 17:27:19 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:52:59 +0200 |
commit | 87a79e6a037c79f73743ed4aa357747760314325 (patch) | |
tree | c711b39ab9a217e035d1ebe779a75390ffc002d5 /src/libstrongswan/utils/utils.c | |
parent | fb81820796349ec353622b08f1391bcecab53582 (diff) | |
download | strongswan-87a79e6a037c79f73743ed4aa357747760314325.tar.bz2 strongswan-87a79e6a037c79f73743ed4aa357747760314325.tar.xz |
windows: Add utils_init/deinit functions to initialize Winsock2
Diffstat (limited to 'src/libstrongswan/utils/utils.c')
-rw-r--r-- | src/libstrongswan/utils/utils.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/utils.c b/src/libstrongswan/utils/utils.c index fe3b32f6c..81eb2acec 100644 --- a/src/libstrongswan/utils/utils.c +++ b/src/libstrongswan/utils/utils.c @@ -48,6 +48,26 @@ ENUM(status_names, SUCCESS, NEED_MORE, ); /** + * See header + */ +void utils_init() +{ +#ifdef WIN32 + windows_init(); +#endif /* WIN32 */ +} + +/** + * See header + */ +void utils_deinit() +{ +#ifdef WIN32 + windows_deinit(); +#endif /* WIN32 */ +} + +/** * Described in header. */ void memxor(u_int8_t dst[], u_int8_t src[], size_t n) |