diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-11-21 22:29:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-11-21 22:29:16 +0000 |
commit | 43716567f593080582d5ed131bde03d8bd7fc80e (patch) | |
tree | 46c0c3679c199f4f2311e61d2d0da2bfbf88c1c6 /ssl/t1_enc.c | |
parent | 0a8f00af3446507a907266614c63e91e49a69691 (diff) |
bcmp doesn't exist on all platforms, replace with memcmp
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index b9d0dd3757..a28bb7d229 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1172,13 +1172,13 @@ int tls1_export_keying_material(SSL *s, unsigned char *out, unsigned int olen, * 15, so size of val > max(prohibited label len) = 15 and the * comparisons won't have buffer overflow */ - if (bcmp(val, TLS_MD_CLIENT_FINISH_CONST, + if (memcmp(val, TLS_MD_CLIENT_FINISH_CONST, TLS_MD_CLIENT_FINISH_CONST_SIZE) == 0) goto err1; - if (bcmp(val, TLS_MD_SERVER_FINISH_CONST, + if (memcmp(val, TLS_MD_SERVER_FINISH_CONST, TLS_MD_SERVER_FINISH_CONST_SIZE) == 0) goto err1; - if (bcmp(val, TLS_MD_MASTER_SECRET_CONST, + if (memcmp(val, TLS_MD_MASTER_SECRET_CONST, TLS_MD_MASTER_SECRET_CONST_SIZE) == 0) goto err1; - if (bcmp(val, TLS_MD_KEY_EXPANSION_CONST, + if (memcmp(val, TLS_MD_KEY_EXPANSION_CONST, TLS_MD_KEY_EXPANSION_CONST_SIZE) == 0) goto err1; tls1_PRF(s->s3->tmp.new_cipher->algorithm2, |