Bug 1247278 - s/uint16_t/PRUint16 to fix Windows build errors r=bustage
authorTim Taubert <ttaubert@mozilla.com>
Thu, 18 Feb 2016 18:39:47 +0100
changeset 11904 bda3307226f2a663cf21ba0fd92849dabd4ac6f1
parent 11903 c2bd9431da866e25510f93210ef3155e175731c0
child 11908 6c6c113700a10bf9d8261b4d5900f46de079fdcf
push id1000
push userttaubert@mozilla.com
push dateThu, 18 Feb 2016 17:58:32 +0000
reviewersbustage
bugs1247278
Bug 1247278 - s/uint16_t/PRUint16 to fix Windows build errors r=bustage
external_tests/ssl_gtest/libssl_internals.c
external_tests/ssl_gtest/libssl_internals.h
--- a/external_tests/ssl_gtest/libssl_internals.c
+++ b/external_tests/ssl_gtest/libssl_internals.c
@@ -21,17 +21,17 @@ SSLInt_IncrementClientHandshakeVersion(P
     }
 
     ++ss->clientHelloVersion;
 
     return SECSuccess;
 }
 
 PRUint32
-SSLInt_DetermineKEABits(uint16_t serverKeyBits, SSLAuthType authAlgorithm) {
+SSLInt_DetermineKEABits(PRUint16 serverKeyBits, SSLAuthType authAlgorithm) {
     // For ECDSA authentication we expect a curve for key exchange with the
     // same strength as the one used for the certificate's signature.
     if (authAlgorithm == ssl_auth_ecdsa) {
         return serverKeyBits;
     }
 
     PORT_Assert(authAlgorithm == ssl_auth_rsa);
     PRUint32 minKeaBits;
--- a/external_tests/ssl_gtest/libssl_internals.h
+++ b/external_tests/ssl_gtest/libssl_internals.h
@@ -8,14 +8,14 @@
 #define libssl_internals_h_
 
 #include "prio.h"
 #include "seccomon.h"
 #include "sslt.h"
 
 SECStatus SSLInt_IncrementClientHandshakeVersion(PRFileDesc *fd);
 
-PRUint32 SSLInt_DetermineKEABits(uint16_t serverKeyBits,
+PRUint32 SSLInt_DetermineKEABits(PRUint16 serverKeyBits,
                                  SSLAuthType authAlgorithm);
 
 #endif