summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-03-24 18:25:20 -0700
committerAdam Langley <agl@google.com>2015-03-24 18:28:00 -0700
commitf40f42df67fffec64967b000e4fdad4b435611a5 (patch)
tree086deea6861fc4705bb472a41a0f3aa62c4c38da /src/crypto
parentb051df5cb1e83aa9ffdfe28406b6d9e33321912a (diff)
downloadexternal_boringssl-f40f42df67fffec64967b000e4fdad4b435611a5.zip
external_boringssl-f40f42df67fffec64967b000e4fdad4b435611a5.tar.gz
external_boringssl-f40f42df67fffec64967b000e4fdad4b435611a5.tar.bz2
Changes to work with OpenSSH and wpa_supplicant.
Change-Id: I19ed78acc67bd0ad8b905ce0ac628b39da8bb161
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/cipher/internal.h36
-rw-r--r--src/crypto/crypto.c8
2 files changed, 8 insertions, 36 deletions
diff --git a/src/crypto/cipher/internal.h b/src/crypto/cipher/internal.h
index 2b8fb05..bc1e2de 100644
--- a/src/crypto/cipher/internal.h
+++ b/src/crypto/cipher/internal.h
@@ -66,42 +66,6 @@ extern "C" {
#endif
-struct evp_cipher_st {
- /* type contains a NID identifing the cipher. (For example, NID_rc4.) */
- int nid;
-
- /* block_size contains the block size, in bytes, of the cipher, or 1 for a
- * stream cipher. */
- unsigned block_size;
-
- /* key_len contains the key size, in bytes, for the cipher. If the cipher
- * takes a variable key size then this contains the default size. */
- unsigned key_len;
-
- /* iv_len contains the IV size, in bytes, or zero if inapplicable. */
- unsigned iv_len;
-
- /* ctx_size contains the size, in bytes, of the per-key context for this
- * cipher. */
- unsigned ctx_size;
-
- /* flags contains the OR of a number of flags. See |EVP_CIPH_*|. */
- uint32_t flags;
-
- /* app_data is a pointer to opaque, user data. */
- void *app_data;
-
- int (*init)(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv,
- int enc);
-
- int (*cipher)(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in,
- size_t inl);
-
- int (*cleanup)(EVP_CIPHER_CTX *);
-
- int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr);
-};
-
/* EVP_CIPH_MODE_MASK contains the bits of |flags| that represent the mode. */
#define EVP_CIPH_MODE_MASK 0x3f
diff --git a/src/crypto/crypto.c b/src/crypto/crypto.c
index c463d5e..64e55f4 100644
--- a/src/crypto/crypto.c
+++ b/src/crypto/crypto.c
@@ -102,3 +102,11 @@ void CRYPTO_library_init(void) {
do_library_init();
#endif
}
+
+const char *SSLeay_version(int unused) {
+ return SSLeay();
+}
+
+const char *SSLeay(void) {
+ return "BoringSSL";
+}