projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some of the ENGINE file names were changed for 8.3 filename uniqueness
[openssl.git]
/
crypto
/
engine
/
hw_openbsd_dev_crypto.c
diff --git
a/crypto/engine/hw_openbsd_dev_crypto.c
b/crypto/engine/hw_openbsd_dev_crypto.c
index 10a271cd04a7874926f1be15abd35aa4d3ea0d4f..9b015feae56c1ef3a4da7bbe5ba4d4375a008442 100644
(file)
--- a/
crypto/engine/hw_openbsd_dev_crypto.c
+++ b/
crypto/engine/hw_openbsd_dev_crypto.c
@@
-1,6
+1,6
@@
/* Written by Ben Laurie <ben@algroup.co.uk> August 2001 */
/* ====================================================================
/* Written by Ben Laurie <ben@algroup.co.uk> August 2001 */
/* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
+ * Copyright (c) 1999
-2001
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@
-53,27
+53,35
@@
*
*/
*
*/
+#ifdef OPENSSL_OPENBSD_DEV_CRYPTO
+
#include <openssl/engine.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
#include <openssl/evp.h>
-#include "eng
ine
_int.h"
+#include "eng_int.h"
static void load_ciphers(ENGINE *e)
static void load_ciphers(ENGINE *e)
- {
- ENGINE_add_cipher(e,EVP_dev_crypto_des_ede3_cbc());
- }
+ {
+ ENGINE_add_cipher(e,EVP_dev_crypto_des_ede3_cbc());
+ ENGINE_add_cipher(e,EVP_dev_crypto_rc4());
+ }
ENGINE *ENGINE_openbsd_dev_crypto(void)
ENGINE *ENGINE_openbsd_dev_crypto(void)
- {
- ENGINE *engine=ENGINE_new();
-
- if(!ENGINE_set_id(engine,"openbsd_dev_crypto")
- || !ENGINE_set_name(engine,"OpenBSD /dev/crypto"))
{
{
- ENGINE_free(engine);
- return NULL;
+ ENGINE *engine=ENGINE_new();
+
+ if(!ENGINE_set_id(engine,"openbsd_dev_crypto") ||
+ !ENGINE_set_name(engine,"OpenBSD /dev/crypto"))
+ {
+ ENGINE_free(engine);
+ return NULL;
+ }
+ load_ciphers(engine);
+
+ return engine;
}
}
- load_ciphers(engine);
- return engine;
- }
+#else /* !defined(OPENSSL_OPENBSD_DEV_CRYPTO) */
+
+static void *dummy=&dummy;
+#endif /* !defined(OPENSSL_OPENBSD_DEV_CRYPTO) */