Skip to content

Instantly share code, notes, and snippets.

@jsquyres
Created March 31, 2015 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsquyres/cb8bfff9c5ca19e925dc to your computer and use it in GitHub Desktop.
Save jsquyres/cb8bfff9c5ca19e925dc to your computer and use it in GitHub Desktop.
libfnr warnings
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
CC fnr.lo
fnr.c:98:15: warning: 'EVP_CIPHER_CTX_new' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (!(ctx = EVP_CIPHER_CTX_new())) FNR_handle_errors();
^
/usr/include/openssl/evp.h:638:17: note: 'EVP_CIPHER_CTX_new' has been explicitly marked deprecated here
EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:101:12: warning: 'EVP_EncryptInit_ex' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (1 != EVP_EncryptInit_ex(ctx, EVP_aes_128_ecb(), NULL, key, NULL))
^
/usr/include/openssl/evp.h:580:5: note: 'EVP_EncryptInit_ex' has been explicitly marked deprecated here
int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
fnr.c:101:36: warning: 'EVP_aes_128_ecb' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (1 != EVP_EncryptInit_ex(ctx, EVP_aes_128_ecb(), NULL, key, NULL))
^
/usr/include/openssl/evp.h:758:19: note: 'EVP_aes_128_ecb' has been explicitly marked deprecated here
const EVP_CIPHER *EVP_aes_128_ecb(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:107:12: warning: 'EVP_EncryptUpdate' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (1 != EVP_EncryptUpdate(ctx, ciphertext, &len, plaintext, plaintext_len))
^
/usr/include/openssl/evp.h:582:5: note: 'EVP_EncryptUpdate' has been explicitly marked deprecated here
int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
^
fnr.c:114:12: warning: 'EVP_EncryptFinal_ex' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (1 != EVP_EncryptFinal_ex(ctx, ciphertext + len, &len)) FNR_handle_errors();
^
/usr/include/openssl/evp.h:584:5: note: 'EVP_EncryptFinal_ex' has been explicitly marked deprecated here
int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) DEPRECATED_IN_MAC_OS_...
^
fnr.c:118:3: warning: 'EVP_CIPHER_CTX_free' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
EVP_CIPHER_CTX_free(ctx);
^
/usr/include/openssl/evp.h:639:6: note: 'EVP_CIPHER_CTX_free' has been explicitly marked deprecated here
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:136:3: warning: 'ERR_print_errors_fp' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
ERR_print_errors_fp(stderr);
^
/usr/include/openssl/err.h:287:6: note: 'ERR_print_errors_fp' has been explicitly marked deprecated here
void ERR_print_errors_fp(FILE *fp) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:187:2: warning: 'AES_encrypt' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
AES_encrypt(block, ctx->buffer, &ctx->key->expanded_aes_key);
^
/usr/include/openssl/aes.h:97:6: note: 'AES_encrypt' has been explicitly marked deprecated here
void AES_encrypt(const unsigned char *in, unsigned char *out,
^
fnr.c:527:9: warning: 'AES_set_encrypt_key' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
if (AES_set_encrypt_key(aes_key, aes_key_size, &key->expanded_aes_key) != 0) {
^
/usr/include/openssl/aes.h:92:5: note: 'AES_set_encrypt_key' has been explicitly marked deprecated here
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
^
fnr.c:601:2: warning: 'AES_encrypt' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
AES_encrypt(block, block, &key->expanded_aes_key);
^
/usr/include/openssl/aes.h:97:6: note: 'AES_encrypt' has been explicitly marked deprecated here
void AES_encrypt(const unsigned char *in, unsigned char *out,
^
fnr.c:751:2: warning: 'AES_encrypt' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
AES_encrypt(block, block, &key->expanded_aes_key);
^
/usr/include/openssl/aes.h:97:6: note: 'AES_encrypt' has been explicitly marked deprecated here
void AES_encrypt(const unsigned char *in, unsigned char *out,
^
fnr.c:788:3: warning: 'ERR_load_crypto_strings' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
ERR_load_crypto_strings();
^
/usr/include/openssl/err.h:296:6: note: 'ERR_load_crypto_strings' has been explicitly marked deprecated here
void ERR_load_crypto_strings(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:789:3: warning: 'OPENSSL_add_all_algorithms_noconf' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
OpenSSL_add_all_algorithms();
^
/usr/include/openssl/evp.h:829:3: note: expanded from macro 'OpenSSL_add_all_algorithms'
OPENSSL_add_all_algorithms_noconf()
^
/usr/include/openssl/evp.h:821:6: note: 'OPENSSL_add_all_algorithms_noconf' has been explicitly marked
deprecated here
void OPENSSL_add_all_algorithms_noconf(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:790:3: warning: 'OPENSSL_config' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
OPENSSL_config(NULL);
^
/usr/include/openssl/conf.h:135:6: note: 'OPENSSL_config' has been explicitly marked deprecated here
void OPENSSL_config(const char *config_name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:795:3: warning: 'EVP_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_cleanup();
^
/usr/include/openssl/evp.h:843:6: note: 'EVP_cleanup' has been explicitly marked deprecated here
void EVP_cleanup(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
fnr.c:796:3: warning: 'ERR_free_strings' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
ERR_free_strings();
^
/usr/include/openssl/err.h:297:6: note: 'ERR_free_strings' has been explicitly marked deprecated here
void ERR_free_strings(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
16 warnings generated.
CCLD libfnr.la
Making all in test
CC ipv4test-test_ipv4.o
test_ipv4.c:44:8: warning: implicit declaration of function 'RAND_bytes' is invalid in C99
[-Wimplicit-function-declaration]
if(!(RAND_bytes(salt, sizeof(salt)))) {
^
test_ipv4.c:48:3: warning: 'PKCS5_PBKDF2_HMAC_SHA1' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), (unsigned char*)salt, strlen(salt), 1000, 16, key);
^
/usr/include/openssl/evp.h:911:5: note: 'PKCS5_PBKDF2_HMAC_SHA1' has been explicitly marked deprecated here
int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
^
test_ipv4.c:48:79: warning: passing 'unsigned char [16]' to parameter of type 'const char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), (unsigned char*)salt, strlen(salt), 1000, 16, key);
^~~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t strlen(const char *);
^
test_ipv4.c:48:96: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers
to integer types with different sign [-Wpointer-sign]
PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), (unsigned char*)salt, strlen(salt), 1000, 16, key);
^~~
/usr/include/openssl/evp.h:913:34: note: passing argument to parameter 'out' here
int keylen, unsigned char *out) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
test_ipv4.c:125:32: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
generate_master_key(passwd,orig_key);
^~~~~~~~
test_ipv4.c:42:47: note: passing argument to parameter 'key' here
void generate_master_key(char* passwd, char* key) {
^
5 warnings generated.
CCLD ipv4test
CC timestamptest-test_timestamp.o
test_timestamp.c:64:8: warning: implicit declaration of function 'RAND_bytes' is invalid in C99
[-Wimplicit-function-declaration]
if (!(RAND_bytes (salt, sizeof (salt)))) {
^
test_timestamp.c:69:10: warning: 'PKCS5_PBKDF2_HMAC_SHA1' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
return (PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen (passwd),
^
/usr/include/openssl/evp.h:911:5: note: 'PKCS5_PBKDF2_HMAC_SHA1' has been explicitly marked deprecated here
int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
^
test_timestamp.c:70:37: warning: passing 'unsigned char [16]' to parameter of type 'const char *' converts
between pointers to integer types with different sign [-Wpointer-sign]
(unsigned char *) salt, strlen (salt), ITERATION, KEYLEN, key));
^~~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t strlen(const char *);
^
test_timestamp.c:70:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
(unsigned char *) salt, strlen (salt), ITERATION, KEYLEN, key));
^~~
/usr/include/openssl/evp.h:913:34: note: passing argument to parameter 'out' here
int keylen, unsigned char *out) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
4 warnings generated.
CCLD timestamptest
make[2]: Nothing to be done for `all-am'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment