diff options
author | jsing <> | 2015-06-20 12:01:54 +0000 |
---|---|---|
committer | jsing <> | 2015-06-20 12:01:54 +0000 |
commit | 3660913fccfa7203b81635423ee9fd049f440469 (patch) | |
tree | 14b5fcb0043c019c1e7ccdb35f39043486a53177 /src/lib | |
parent | 2112d12656f65e1a6af5948a65656faad29b38b4 (diff) | |
download | openbsd-3660913fccfa7203b81635423ee9fd049f440469.tar.gz openbsd-3660913fccfa7203b81635423ee9fd049f440469.tar.bz2 openbsd-3660913fccfa7203b81635423ee9fd049f440469.zip |
Put CRYPTO_memcmp() under #ifndef LIBRESSL_INTERNAL.
ok doug@ deraadt@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/crypto.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 4012f1c99a..68028d9c13 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto.h,v 1.34 2015/04/11 16:16:15 deraadt Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.35 2015/06/20 12:01:54 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -512,12 +512,14 @@ int OPENSSL_isservice(void); | |||
512 | 512 | ||
513 | void OPENSSL_init(void); | 513 | void OPENSSL_init(void); |
514 | 514 | ||
515 | #ifndef LIBRESSL_INTERNAL | ||
515 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It | 516 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It |
516 | * takes an amount of time dependent on |len|, but independent of the contents | 517 | * takes an amount of time dependent on |len|, but independent of the contents |
517 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a | 518 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a |
518 | * defined order as the return value when a != b is undefined, other than to be | 519 | * defined order as the return value when a != b is undefined, other than to be |
519 | * non-zero. */ | 520 | * non-zero. */ |
520 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); | 521 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); |
522 | #endif | ||
521 | 523 | ||
522 | /* BEGIN ERROR CODES */ | 524 | /* BEGIN ERROR CODES */ |
523 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 525 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h index 4012f1c99a..68028d9c13 100644 --- a/src/lib/libssl/src/crypto/crypto.h +++ b/src/lib/libssl/src/crypto/crypto.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto.h,v 1.34 2015/04/11 16:16:15 deraadt Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.35 2015/06/20 12:01:54 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -512,12 +512,14 @@ int OPENSSL_isservice(void); | |||
512 | 512 | ||
513 | void OPENSSL_init(void); | 513 | void OPENSSL_init(void); |
514 | 514 | ||
515 | #ifndef LIBRESSL_INTERNAL | ||
515 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It | 516 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It |
516 | * takes an amount of time dependent on |len|, but independent of the contents | 517 | * takes an amount of time dependent on |len|, but independent of the contents |
517 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a | 518 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a |
518 | * defined order as the return value when a != b is undefined, other than to be | 519 | * defined order as the return value when a != b is undefined, other than to be |
519 | * non-zero. */ | 520 | * non-zero. */ |
520 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); | 521 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); |
522 | #endif | ||
521 | 523 | ||
522 | /* BEGIN ERROR CODES */ | 524 | /* BEGIN ERROR CODES */ |
523 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 525 | /* The following lines are auto generated by the script mkerr.pl. Any changes |