Make ready for release of 1.3.8 and soversion 7
diff --git a/ChangeLog b/ChangeLog
index 3e99e26..eb3889d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,6 @@
 PolarSSL ChangeLog (Sorted per branch, date)
 
-TODO: bump SOVERSION for ABI change
-(internal-but-not-static function x509_get_sig_alg() changed prototype)
-(and various x509 structures got a new member)
-
-= PolarSSL 1.3 branch
+= PolarSSL 1.3.8 branch (not yet released)
 Security
    * Fix length checking for AEAD ciphersuites (found by Codenomicon).
      It was possible to crash the server (and client) using crafted messages
diff --git a/doxygen/input/doc_mainpage.h b/doxygen/input/doc_mainpage.h
index df88d2f..0f36db7 100644
--- a/doxygen/input/doc_mainpage.h
+++ b/doxygen/input/doc_mainpage.h
@@ -4,7 +4,7 @@
  */
 
 /**
- * @mainpage PolarSSL v1.3.7 source code documentation
+ * @mainpage PolarSSL v1.3.8 source code documentation
  *
  * This documentation describes the internal structure of PolarSSL.  It was
  * automatically generated from specially formatted comment blocks in
diff --git a/doxygen/polarssl.doxyfile b/doxygen/polarssl.doxyfile
index 18362d5..64e4a8d 100644
--- a/doxygen/polarssl.doxyfile
+++ b/doxygen/polarssl.doxyfile
@@ -28,7 +28,7 @@
 # identify the project. Note that if you do not use Doxywizard you need
 # to put quotes around the project name if it contains spaces.
 
-PROJECT_NAME           = "PolarSSL v1.3.7"
+PROJECT_NAME           = "PolarSSL v1.3.8"
 
 # The PROJECT_NUMBER tag can be used to enter a project or revision number.
 # This could be handy for archiving the generated documentation or
diff --git a/include/polarssl/version.h b/include/polarssl/version.h
index 2e1e64a..1ee2a3b 100644
--- a/include/polarssl/version.h
+++ b/include/polarssl/version.h
@@ -43,16 +43,16 @@
  */
 #define POLARSSL_VERSION_MAJOR  1
 #define POLARSSL_VERSION_MINOR  3
-#define POLARSSL_VERSION_PATCH  7
+#define POLARSSL_VERSION_PATCH  8
 
 /**
  * The single version number has the following structure:
  *    MMNNPP00
  *    Major version | Minor version | Patch version
  */
-#define POLARSSL_VERSION_NUMBER         0x01030700
-#define POLARSSL_VERSION_STRING         "1.3.7"
-#define POLARSSL_VERSION_STRING_FULL    "PolarSSL 1.3.7"
+#define POLARSSL_VERSION_NUMBER         0x01030800
+#define POLARSSL_VERSION_STRING         "1.3.8"
+#define POLARSSL_VERSION_STRING_FULL    "PolarSSL 1.3.8"
 
 #if defined(POLARSSL_VERSION_C)
 
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index c57e14f..bc986ee 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -118,7 +118,7 @@
 
 if(USE_SHARED_POLARSSL_LIBRARY)
 	add_library(polarssl SHARED ${src})
-	set_target_properties(polarssl PROPERTIES VERSION 1.3.7 SOVERSION 6)
+	set_target_properties(polarssl PROPERTIES VERSION 1.3.8 SOVERSION 7)
 
 	target_link_libraries(polarssl ${libs})
 
diff --git a/library/Makefile b/library/Makefile
index 281353a..d637417 100644
--- a/library/Makefile
+++ b/library/Makefile
@@ -22,9 +22,9 @@
 CFLAGS += -fPIC
 endif
 
-SONAME=libpolarssl.so.6
+SONAME=libpolarssl.so.7
 
-DLEXT=so.6
+DLEXT=so.7
 # OSX shared library extension:
 # DLEXT=dylib
 
diff --git a/library/version_features.c b/library/version_features.c
index 8dc530a..1023198 100644
--- a/library/version_features.c
+++ b/library/version_features.c
@@ -147,6 +147,9 @@
 #if defined(POLARSSL_ENABLE_WEAK_CIPHERSUITES)
     "POLARSSL_ENABLE_WEAK_CIPHERSUITES",
 #endif /* POLARSSL_ENABLE_WEAK_CIPHERSUITES */
+#if defined(POLARSSL_REMOVE_ARC4_CIPHERSUITES)
+    "POLARSSL_REMOVE_ARC4_CIPHERSUITES",
+#endif /* POLARSSL_REMOVE_ARC4_CIPHERSUITES */
 #if defined(POLARSSL_ECP_DP_SECP192R1_ENABLED)
     "POLARSSL_ECP_DP_SECP192R1_ENABLED",
 #endif /* POLARSSL_ECP_DP_SECP192R1_ENABLED */
@@ -336,6 +339,9 @@
 #if defined(POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE)
     "POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE",
 #endif /* POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE */
+#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
+    "POLARSSL_X509_RSASSA_PSS_SUPPORT",
+#endif /* POLARSSL_X509_RSASSA_PSS_SUPPORT */
 #if defined(POLARSSL_ZLIB_SUPPORT)
     "POLARSSL_ZLIB_SUPPORT",
 #endif /* POLARSSL_ZLIB_SUPPORT */
diff --git a/tests/suites/test_suite_version.data b/tests/suites/test_suite_version.data
index 20ceb19..4ef73da 100644
--- a/tests/suites/test_suite_version.data
+++ b/tests/suites/test_suite_version.data
@@ -1,8 +1,8 @@
 Check compiletime library version
-check_compiletime_version:"1.3.7"
+check_compiletime_version:"1.3.8"
 
 Check runtime library version
-check_runtime_version:"1.3.7"
+check_runtime_version:"1.3.8"
 
 Check for POLARSSL_VERSION_C
 check_feature:"POLARSSL_VERSION_C":0
diff --git a/visualc/VS2010/PolarSSL.vcxproj b/visualc/VS2010/PolarSSL.vcxproj
index 5ea5b15..5767b96 100644
--- a/visualc/VS2010/PolarSSL.vcxproj
+++ b/visualc/VS2010/PolarSSL.vcxproj
@@ -256,6 +256,7 @@
     <ClCompile Include="..\..\library\pkwrite.c" />

     <ClCompile Include="..\..\library\platform.c" />

     <ClCompile Include="..\..\library\ripemd160.c" />

+    <ClCompile Include="..\..\library\rnd_test.c" />

     <ClCompile Include="..\..\library\rsa.c" />

     <ClCompile Include="..\..\library\sha1.c" />

     <ClCompile Include="..\..\library\sha256.c" />

diff --git a/visualc/VS6/polarssl.dsp b/visualc/VS6/polarssl.dsp
index 17e9e70..59aedfb 100644
--- a/visualc/VS6/polarssl.dsp
+++ b/visualc/VS6/polarssl.dsp
@@ -273,6 +273,10 @@
 # End Source File

 # Begin Source File

 

+SOURCE=..\..\library\rnd_test.c

+# End Source File

+# Begin Source File

+

 SOURCE=..\..\library\rsa.c

 # End Source File

 # Begin Source File