Implement public key encryption in write_encrypted_pms.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 17 Jan 2017 13:18:14 +0000 (22:18 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 17 Jan 2017 13:18:14 +0000 (22:18 +0900)
commit86d3ccebd64da692ef03a95da015ca68b8c2e938
treed7eef51f3bafb673dd7c8a3aebd8411224b599eb
parentc9231ca6c256708d6e8d583f54bb339d4c6e14c7
Implement public key encryption in write_encrypted_pms.

* src/x509.c (ntbtls_x509_pk_encrypt): New.
* src/protocol-cli.c (write_encrypted_pms): Call
ntbtls_x509_pk_encrypt.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/ntbtls-int.h
src/protocol-cli.c
src/x509.c