[asterisk-scf-commits] asterisk-scf/integration/pjproject.git branch "ipv6-tls" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Mar 16 15:58:08 CDT 2011
branch "ipv6-tls" has been updated
via aac76109af0f8740b9b32f6459a02c0fc4bc8c29 (commit)
from 8b80c1fc3380c940ba808a682e954671850c9df2 (commit)
Summary of changes:
pjsip/misc/tlstestcert.pem | 32 ++++++++++++++++++++++++++++++++
pjsip/src/test/transport_tls_test.c | 4 ++--
pjsip/src/test/transport_tls_test_v6.c | 4 ++--
3 files changed, 36 insertions(+), 4 deletions(-)
create mode 100644 pjsip/misc/tlstestcert.pem
- Log -----------------------------------------------------------------
commit aac76109af0f8740b9b32f6459a02c0fc4bc8c29
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Mar 16 17:57:30 2011 -0300
Add a self signed certificate for the TLS tests and use it.
diff --git a/pjsip/misc/tlstestcert.pem b/pjsip/misc/tlstestcert.pem
new file mode 100644
index 0000000..32ba54c
--- /dev/null
+++ b/pjsip/misc/tlstestcert.pem
@@ -0,0 +1,32 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQDUc++AwwYFyF26wwY+X8U+PB6OKEBaNAxB4lNSQHCxIVxrEPYz
+UxU5IRa0zFMBUN2l/+wVkCwaPw8y+2kyYqhdXtA9/MdtwYW+iGj1q0RCtucqjQes
+PuGxMJiiot8656iFE9SMvu+KMpxDJnTDHej7USrcSgsNFwNYdYn9BZMqMQIDAQAB
+AoGAIKdlI3xWO6NNTLxXBFVCAsvIwn7LTVH8pE++EMFY0NDY3Jfxz3ewpmRAki9p
+fqVIPBB23+WV8b7JfkOIKrdhOxjt+G3OtFmIFpKiwaROK4Nv4iCv4dyI8yHHewyS
+IWhnBlJnTxOvnQyo6nvlW8b6XPODLeJJFiajNvDZ1P5DFnECQQDyeJG3aQEgNc9Q
+BwE7+5AuzC6A/IrxvAhN7E/0mYzX9gZ2JlDY6233xMHMK3r+vo+1OUi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kGA1UEBhMCQ0ExFjAU
+BgNVBAgTDU5ldyBCcnVuc3dpY2sxEDAOBgNVBAcTB01vbmN0b24xETAPBgNVBAMT
+CFRMUyBUZXN0ggkA+tgaWl1DX2UwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUF
+AAOBgQBk23CJcNeZmwy1yiqnEKKvX0btySaKrWHBdPI+DW2mCFHK1RdrBfpyaWUb
+HZ0L6kYDdX96a2Z8NeezuxWkWGImDDvV0BZTD8xIlTusRCr0Q899Rk7NUVuc97tp
+DwofHQDkWiZeIHCsNjKdUgFaBH6P6jMA5OSNpUdF6Q7imxCjLA==
+-----END CERTIFICATE-----
diff --git a/pjsip/src/test/transport_tls_test.c b/pjsip/src/test/transport_tls_test.c
index 842070a..d6e193b 100644
--- a/pjsip/src/test/transport_tls_test.c
+++ b/pjsip/src/test/transport_tls_test.c
@@ -50,8 +50,8 @@ int transport_tls_test(void)
/* Start TLS listener on arbitrary port. */
pjsip_tls_setting_default(&tls_setting);
- tls_setting.cert_file = pj_str("/home/jcolp/mycert.pem");
- tls_setting.privkey_file = pj_str("/home/jcolp/mycert.pem");
+ tls_setting.cert_file = pj_str("../misc/tlstestcert.pem");
+ tls_setting.privkey_file = pj_str("../misc/tlstestcert.pem");
status = pjsip_tls_transport_start(endpt, &tls_setting, (pj_sockaddr*)&local_addr, NULL, 1, &tpfactory);
if (status != PJ_SUCCESS) {
app_perror(" Error: unable to start TLS transport", status);
diff --git a/pjsip/src/test/transport_tls_test_v6.c b/pjsip/src/test/transport_tls_test_v6.c
index c694db8..e2e16c9 100644
--- a/pjsip/src/test/transport_tls_test_v6.c
+++ b/pjsip/src/test/transport_tls_test_v6.c
@@ -44,8 +44,8 @@ int transport_tls_test_v6(void)
/* Start TLS listener on arbitrary port. */
pjsip_tls_setting_default(&tls_setting);
- tls_setting.cert_file = pj_str("/home/jcolp/mycert.pem");
- tls_setting.privkey_file = pj_str("/home/jcolp/mycert.pem");
+ tls_setting.cert_file = pj_str("../misc/tlstestcert.pem");
+ tls_setting.privkey_file = pj_str("../misc/tlstestcert.pem");
status = pjsip_tls_transport_start(endpt, &tls_setting, NULL, NULL, 1, &tpfactory);
if (status != PJ_SUCCESS) {
app_perror(" Error: unable to start TLS transport", status);
-----------------------------------------------------------------------
--
asterisk-scf/integration/pjproject.git
More information about the asterisk-scf-commits
mailing list