X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fv3nametest.c;h=86f3829aedbd8f3b23bd6b7e8c8d3c90321a51dd;hp=a4ba775b5c40685fe96adf21d655c20051f1f51f;hb=c86acc9f83f0c5c931519e861ba2ef37069f1ff4;hpb=176db6dc51ec0a972bfa8836cfdab8f6767c978a diff --git a/test/v3nametest.c b/test/v3nametest.c index a4ba775b5c..86f3829aed 100644 --- a/test/v3nametest.c +++ b/test/v3nametest.c @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2012-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -8,12 +8,17 @@ */ #include -#include "internal/nelem.h" -#include "../e_os.h" + +#include #include #include +#include "internal/nelem.h" #include "testutil.h" +#ifdef OPENSSL_SYS_WINDOWS +# define strcasecmp _stricmp +#endif + static const char *const names[] = { "a", "b", ".", "*", "@", ".a", "a.", ".b", "b.", ".*", "*.", "*@", "@*", "a@", "@a", "b@", "..", @@ -246,7 +251,7 @@ static const struct set_name_fn name_fns[] = { {set_altname_email, "set rfc822Name", 0, 1}, }; -static X509 *make_cert() +static X509 *make_cert(void) { X509 *crt = NULL;