Remove the dual-callback scheme for numeric and pointer thread IDs,
[oweals/openssl.git] / ssl / t1_enc.c
index ee511a6512169857d527403b8365927e761e2abe..3a349920d9cd2144e73472f43b98f46fc59c74cf 100644 (file)
@@ -793,8 +793,8 @@ int tls1_final_finish_mac(SSL *s,
                {
                if (mask & s->s3->tmp.new_cipher->algorithm2)
                        {
-                       int hashsize = EVP_MD_size(md);
-                       if ((size_t)hashsize > (sizeof buf - (size_t)(q-buf)))
+                       unsigned int hashsize = EVP_MD_size(md);
+                       if (hashsize > (sizeof buf - (size_t)(q-buf)))
                                {
                                /* internal error: 'buf' is too small for this cipersuite! */
                                err = 1;