Resolve signed vs. unsigned issues

This commit is contained in:
Richard Levitte
2006-03-13 12:32:51 +00:00
parent 019fdc7850
commit 07ef612968
3 changed files with 7 additions and 7 deletions

View File

@@ -1514,7 +1514,7 @@ int ssl3_send_server_key_exchange(SSL *s)
{
/* copy PSK identity hint */
s2n(strlen(s->ctx->psk_identity_hint), p);
strncpy(p, s->ctx->psk_identity_hint, strlen(s->ctx->psk_identity_hint));
strncpy((char *)p, s->ctx->psk_identity_hint, strlen(s->ctx->psk_identity_hint));
p+=strlen(s->ctx->psk_identity_hint);
}
#endif
@@ -2305,7 +2305,7 @@ int ssl3_get_client_key_exchange(SSL *s)
if (s->session->psk_identity != NULL)
OPENSSL_free(s->session->psk_identity);
s->session->psk_identity = BUF_strdup(p);
s->session->psk_identity = BUF_strdup((char *)p);
if (s->session->psk_identity == NULL)
{
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,