Fix WIN32+KRB5 issues.
This commit is contained in:
parent
36b29660ce
commit
69762c75fa
2 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include "ssl_locl.h"
|
||||
#include "kssl_lcl.h"
|
||||
#include <openssl/buffer.h>
|
||||
#include <openssl/rand.h>
|
||||
#include <openssl/objects.h>
|
||||
|
|
|
@ -1886,7 +1886,7 @@ int ssl3_get_client_key_exchange(SSL *s)
|
|||
n2s(p,i);
|
||||
enc_ticket.length = i;
|
||||
|
||||
if (n < enc_ticket.length + 6)
|
||||
if (n < (int)enc_ticket.length + 6)
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
|
||||
SSL_R_DATA_LENGTH_TOO_LONG);
|
||||
|
@ -1899,7 +1899,7 @@ int ssl3_get_client_key_exchange(SSL *s)
|
|||
n2s(p,i);
|
||||
authenticator.length = i;
|
||||
|
||||
if (n < enc_ticket.length + authenticator.length + 6)
|
||||
if (n < (int)(enc_ticket.length + authenticator.length) + 6)
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
|
||||
SSL_R_DATA_LENGTH_TOO_LONG);
|
||||
|
|
Loading…
Reference in a new issue