diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index d98b669b5..96bd35f67 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -64,7 +64,10 @@ int main( void ) #include #include #include + +#if !defined(_MSC_VER) #include +#endif #if !defined(_WIN32) #include @@ -1056,8 +1059,13 @@ int main( int argc, char *argv[] ) } else if( strcmp( p, "renego_period" ) == 0 ) { - if( sscanf( q, "%" SCNu64, &opt.renego_period ) != 1 || - opt.renego_period < 2 ) +#if defined(_MSC_VER) + opt.renego_period = _strtoui64( q, NULL, 10 ); +#else + if( sscanf( q, "%" SCNu64, &opt.renego_period ) != 1 ) + goto usage; +#endif /* _MSC_VER */ + if( opt.renego_period < 2 ) goto usage; } else if( strcmp( p, "exchanges" ) == 0 )