summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/rc4_utl.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/rc4/rc4_utl.c (renamed from src/lib/libssl/src/fips-1.0/fips_locl.h)33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/lib/libssl/src/fips-1.0/fips_locl.h b/src/lib/libcrypto/rc4/rc4_utl.c
index bbddfaab82..ab3f02fe6a 100644
--- a/src/lib/libssl/src/fips-1.0/fips_locl.h
+++ b/src/lib/libcrypto/rc4/rc4_utl.c
@@ -1,5 +1,6 @@
1/* crypto/rc4/rc4_utl.c -*- mode:C; c-file-style: "eay" -*- */
1/* ==================================================================== 2/* ====================================================================
2 * Copyright (c) 2003 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2011 The OpenSSL Project. All rights reserved.
3 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
@@ -44,28 +45,18 @@
44 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 45 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 46 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
46 * OF THE POSSIBILITY OF SUCH DAMAGE. 47 * OF THE POSSIBILITY OF SUCH DAMAGE.
48 * ====================================================================
47 * 49 *
48 */ 50 */
49 51
50#ifdef OPENSSL_FIPS 52#include <openssl/opensslv.h>
51 53#include <openssl/crypto.h>
52#ifdef __cplusplus 54#include <openssl/rc4.h>
53extern "C" {
54#endif
55 55
56/* These are trampolines implemented in crypto/cryptlib.c */ 56void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data)
57void fips_w_lock(void); 57 {
58void fips_w_unlock(void); 58#ifdef OPENSSL_FIPS
59void fips_r_lock(void); 59 fips_cipher_abort(RC4);
60void fips_r_unlock(void);
61int fips_is_started(void);
62void fips_set_started(void);
63int fips_is_owning_thread(void);
64int fips_set_owning_thread(void);
65int fips_clear_owning_thread(void);
66unsigned char *fips_signature_witness(void);
67
68#ifdef __cplusplus
69}
70#endif
71#endif 60#endif
61 private_RC4_set_key(key, len, data);
62 }