From 4a147c2cc9fc8d7cde7b9209d88ca32c89309d7e Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 24 Mar 2010 07:18:04 +0000 Subject: - Added missing const fixes --- ChangeLog | 2 +- library/certs.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88bdd28..2f42c07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ PolarSSL ChangeLog = Version 0.13.1 released on 2010-03-24 Bug fixes * Fixed Makefile in library that was mistakenly merged - * Added missing const string fix in ssl_tls + * Added missing const string fixes = Version 0.13.0 released on 2010-03-21 Features diff --git a/library/certs.c b/library/certs.c index a56a94f..ccc32db 100644 --- a/library/certs.c +++ b/library/certs.c @@ -23,7 +23,7 @@ #if defined(POLARSSL_CERTS_C) -char test_ca_crt[] = +const char test_ca_crt[] = "-----BEGIN CERTIFICATE-----\r\n" "MIIDhzCCAm+gAwIBAgIBADANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" @@ -46,7 +46,7 @@ char test_ca_crt[] = "oX3Yn5p+NZy1aXBoac1KKEu3jzHuB9eS9VRdtcl44abmFTf33T04R0Sx4g==\r\n" "-----END CERTIFICATE-----\r\n"; -char test_ca_key[] = +const char test_ca_key[] = "-----BEGIN RSA PRIVATE KEY-----\r\n" "Proc-Type: 4,ENCRYPTED\r\n" "DEK-Info: DES-EDE3-CBC,EB254D9A7718A8E2\r\n" @@ -78,9 +78,9 @@ char test_ca_key[] = "7qq3iAZUX0ZftEsM6sioiDhI/HBkUQOQd/2oxaYcEc480cMxf1DueA==\r\n" "-----END RSA PRIVATE KEY-----\r\n"; -char test_ca_pwd[] = "PolarSSLTest"; +const char test_ca_pwd[] = "PolarSSLTest"; -char test_srv_crt[] = +const char test_srv_crt[] = "-----BEGIN CERTIFICATE-----\r\n" "MIIDNzCCAh+gAwIBAgIBCTANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" @@ -102,7 +102,7 @@ char test_srv_crt[] = "Brn4x0KTWpIPMpc=\r\n" "-----END CERTIFICATE-----\r\n"; -char test_srv_key[] = +const char test_srv_key[] = "-----BEGIN RSA PRIVATE KEY-----\r\n" "MIIEowIBAAKCAQEAsBkdQ0rh8WeAe0Q/JbkQ8PGsr1n7XOPnMknzt6DBkCeDBCwL\r\n" "G/g9HtjCQGd6SsDNq1F3NO6urAlressgI7NEsX54oJVQWTaXBFeadmXgCHoJXmEW\r\n" @@ -131,7 +131,7 @@ char test_srv_key[] = "alggV/is0bHz2sGVtWTy0N8jAyFmlDxCWBcqaQ2hVP2910rQgUVd\r\n" "-----END RSA PRIVATE KEY-----\r\n"; -char test_cli_crt[] = +const char test_cli_crt[] = "-----BEGIN CERTIFICATE-----\r\n" "MIIDPzCCAiegAwIBAgIBBDANBgkqhkiG9w0BAQUFADA7MQswCQYDVQQGEwJOTDER\r\n" "MA8GA1UEChMIUG9sYXJTU0wxGTAXBgNVBAMTEFBvbGFyU1NMIFRlc3QgQ0EwHhcN\r\n" @@ -153,7 +153,7 @@ char test_cli_crt[] = "7e7c+oTqh+DDfnbkF6NYJQeCvw==\r\n" "-----END CERTIFICATE-----\r\n"; -char test_cli_key[] = +const char test_cli_key[] = "-----BEGIN RSA PRIVATE KEY-----\r\n" "MIIEpAIBAAKCAQEAodfTDCz/vIWD4rI8wlsV/pJ8Cbh73pA5GU1RJhvIvdOfZKtm\r\n" "eS4eLD/YBwnwSTSe997dSme1lryeerxq5BXyRQw9JjIzp+X+8Rng4x2GMKjksV9g\r\n" -- cgit v1.1