Revision: 9639 https://osdn.net/projects/ttssh2/scm/svn/commits/9639 Author: nmaya Date: 2021-12-27 23:46:41 +0900 (Mon, 27 Dec 2021) Log Message: ----------- OpenSSL 1.1.0 で deprecated になっていた HMAC_Init を HMAC_Init_ex に置き換え Merge from 4-stable: r9638 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/9638 Modified Paths: -------------- trunk/ttssh2/ttxssh/crypt.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/crypt.c =================================================================== --- trunk/ttssh2/ttxssh/crypt.c 2021-12-27 14:45:46 UTC (rev 9638) +++ trunk/ttssh2/ttxssh/crypt.c 2021-12-27 14:46:41 UTC (rev 9639) @@ -724,7 +724,7 @@ if (c == NULL) goto error; - HMAC_Init(c, mac->key, mac->key_len, mac->md); + HMAC_Init_ex(c, mac->key, mac->key_len, mac->md, NULL); set_uint32_MSBfirst(b, sequence_number); HMAC_Update(c, b, sizeof(b)); HMAC_Update(c, data, len); @@ -782,7 +782,7 @@ if (c == NULL) return FALSE; - HMAC_Init(c, mac->key, mac->key_len, mac->md); + HMAC_Init_ex(c, mac->key, mac->key_len, mac->md, NULL); set_uint32_MSBfirst(b, sequence_number); HMAC_Update(c, b, sizeof(b)); HMAC_Update(c, data, len);