make 段階で aircrack-ng のインストール中にエラーが発生しました。 HMACに関する内容はありますか?

make 段階で aircrack-ng のインストール中にエラーが発生しました。 HMACに関する内容はありますか?

kaliスクロールにaircrack-ngをインストールしようとしてmake機能を使用しようとしましたが、HMAC_CTXというファイルに関するエラーが発生します。

crypto.c: In function 'calc_mic':
crypto.c:291:11: error: storage size of 'ctx' isn't known
HMAC_CTX ctx;
   ^~~
crypto.c:317:2: warning: implicit declaration of function 
'HMAC_CTX_init' [-Wimplicit-function-declaration]
HMAC_CTX_init(&ctx);
^~~~~~~~~~~~~
crypto.c:327:2: warning: implicit declaration of function 
'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
HMAC_CTX_cleanup(&ctx);
^~~~~~~~~~~~~~~~
crypto.c:291:11: warning: unused variable 'ctx' [-Wunused-variable]
HMAC_CTX ctx;
   ^~~
crypto.c: In function 'calc_tkip_mic_key':
crypto.c:932:5: warning: this 'if' clause does not guard... [-
Wmisleading-indentation]
if((ptr-message) % 4 > 0)
^~
crypto.c:933:49: note: ...this statement, but the latter is 
misleadingly indented as if it is guarded by the 'if'
 memcpy(ptr, ZERO, 4-((ptr-message)%4)); ptr+=4-((ptr-
message)%4);

ベストアンサー1

これは定義の問題のようです。ここでは警告を無視できます。ソースコードが古い。

この場所の実際のコードスニペットは次のとおりです。

#if defined(USE_GCRYPT) || OPENSSL_VERSION_NUMBER < 0x10100000L
    #define HMAC_USE_NO_PTR
#endif

#ifdef HMAC_USE_NO_PTR
HMAC_CTX ctx;
#else
HMAC_CTX * ctx;
#endif

リポジトリを更新しapt-get updateて再インストールする必要があります。またはコンパイルする場合は、更新されたソースコードをダウンロードしてください。

おすすめ記事