tls: fix encoding in certificate-related functions
authorAdam Lippai <adam.lippai@tresorit.com>
Sat, 13 Sep 2014 22:37:34 +0000 (00:37 +0200)
committerFedor Indutny <fedor@indutny.com>
Mon, 15 Sep 2014 13:42:20 +0000 (17:42 +0400)
commit11d57a535c21a64885808afd41612406ff854c69
treed057e43786af8513fcccf11a83c51623da95bb56
parent630f0c4660f9c9fb7c6b1f032e92fc1ca238f0e9
tls: fix encoding in certificate-related functions

Strings are treated as UTF8 instead of one-byte strings when
names are processed and when OpenSSL's ..._print functions are used.

This commit fixes simple/test-tls-peer-certificate-encoding test.

fix #8366
src/node_crypto.cc
test/fixtures/keys/Makefile
test/fixtures/keys/agent5-cert.pem [new file with mode: 0644]
test/fixtures/keys/agent5-csr.pem [new file with mode: 0644]
test/fixtures/keys/agent5-key.pem [new file with mode: 0644]
test/fixtures/keys/agent5.cnf [new file with mode: 0644]
test/fixtures/keys/ca2-cert.srl
test/simple/test-tls-peer-certificate-encoding.js [new file with mode: 0644]