From: Vitaly Chikunov Date: Sun, 19 Dec 2021 22:40:39 +0000 (+0300) Subject: MSVC: Fix casting warning C4057 X-Git-Tag: v3.0.1~13 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=5066a5ec83976a283f676b0386e0cb15fd7378dc;p=openssl-gost%2Fengine.git MSVC: Fix casting warning C4057 test_tls.c(103,5): warning C4057: 'function': 'const unsigned char *' differs in indirection to slightly different base types from 'char [8]' test_tls.c(104,5): warning C4057: 'function': 'const unsigned char *' differs in indirection to slightly different base types from 'char [9]' Signed-off-by: Vitaly Chikunov --- diff --git a/test_tls.c b/test_tls.c index 1e805c3..31b750b 100644 --- a/test_tls.c +++ b/test_tls.c @@ -225,8 +225,8 @@ static struct certkey certgen(const char *algname, const char *paramset) T(X509_REQ_set_version(req, 0L)); X509_NAME *name; T(name = X509_NAME_new()); - T(X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, "Test CA", -1, -1, 0)); - T(X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, "Test Key", -1, -1, 0)); + T(X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char *)"Test CA", -1, -1, 0)); + T(X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char *)"Test Key", -1, -1, 0)); T(X509_REQ_set_subject_name(req, name)); T(X509_REQ_set_pubkey(req, pkey)); X509_NAME_free(name);