Skip to content

Build on OS X failing #46

@hyandell

Description

@hyandell

The build was previously working for me on OS X, but now is failing with the following error:

s2n_aead_cipher_aes_gcm.c:61:65: error: use of undeclared identifier 'EVP_CTRL_GCM_GET_TAG'
if (EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_GET_TAG, S2N_TLS_GCM_TAG_LEN, tag_data) != 1) {
^
s2n_aead_cipher_aes_gcm.c:87:65: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_TAG'
if (EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_SET_TAG, S2N_TLS_GCM_TAG_LEN, tag_data) == 0) {
^
s2n_aead_cipher_aes_gcm.c:115:60: error: implicit declaration of function 'EVP_aes_128_gcm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
EVP_EncryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_128_gcm(), NULL, NULL, NULL);
^
s2n_aead_cipher_aes_gcm.c:115:60: note: did you mean 'EVP_aes_128_ecb'?
/usr/include/openssl/evp.h:758:19: note: 'EVP_aes_128_ecb' declared here
const EVP_CIPHER EVP_aes_128_ecb(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
s2n_aead_cipher_aes_gcm.c:115:60: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') [-Werror,-Wint-conversion]
EVP_EncryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_128_gcm(), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:580:62: note: passing argument to parameter 'cipher' here
int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
s2n_aead_cipher_aes_gcm.c:116:61: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_IVLEN'
EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_SET_IVLEN, S2N_TLS_GCM_IV_LEN, NULL);
^
s2n_aead_cipher_aes_gcm.c:127:60: error: implicit declaration of function 'EVP_aes_256_gcm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
EVP_EncryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_256_gcm(), NULL, NULL, NULL);
^
s2n_aead_cipher_aes_gcm.c:127:60: note: did you mean 'EVP_aes_256_ecb'?
/usr/include/openssl/evp.h:778:19: note: 'EVP_aes_256_ecb' declared here
const EVP_CIPHER *EVP_aes_256_ecb(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
s2n_aead_cipher_aes_gcm.c:127:60: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') [-Werror,-Wint-conversion]
EVP_EncryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_256_gcm(), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:580:62: note: passing argument to parameter 'cipher' here
int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
s2n_aead_cipher_aes_gcm.c:128:61: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_IVLEN'
EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_SET_IVLEN, S2N_TLS_GCM_IV_LEN, NULL);
^
s2n_aead_cipher_aes_gcm.c:139:60: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') [-Werror,-Wint-conversion]
EVP_DecryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_128_gcm(), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:589:62: note: passing argument to parameter 'cipher' here
int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
s2n_aead_cipher_aes_gcm.c:140:61: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_IVLEN'
EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_SET_IVLEN, S2N_TLS_GCM_IV_LEN, NULL);
^
s2n_aead_cipher_aes_gcm.c:151:60: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') [-Werror,-Wint-conversion]
EVP_DecryptInit_ex(&key->native_format.evp_cipher_ctx, EVP_aes_256_gcm(), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:589:62: note: passing argument to parameter 'cipher' here
int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
s2n_aead_cipher_aes_gcm.c:152:61: error: use of undeclared identifier 'EVP_CTRL_GCM_SET_IVLEN'
EVP_CIPHER_CTX_ctrl(&key->native_format.evp_cipher_ctx, EVP_CTRL_GCM_SET_IVLEN, S2N_TLS_GCM_IV_LEN, NULL);
^
12 errors generated.
make[1]: *
* [s2n_aead_cipher_aes_gcm.o] Error 1
make: *** [libs] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions