X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_tls.c;fp=test_tls.c;h=31b750b4949be9d085645bdc7cc69220287d66d5;hb=5066a5ec83976a283f676b0386e0cb15fd7378dc;hp=1e805c3e67118d57a18a1f381f9c0ccbd14794a6;hpb=9d390a3369bfc121d7fe83f49c12828f0413af67;p=openssl-gost%2Fengine.git 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);