winpr/crypt api changes and memory leak fixes
authorNorbert Federa <norbert.federa@thincast.com>
Thu, 24 Nov 2016 13:53:19 +0000 (14:53 +0100)
committerNorbert Federa <norbert.federa@thincast.com>
Thu, 24 Nov 2016 17:27:29 +0000 (18:27 +0100)
commit53bd98883ea147166adadc78362491ebeccba392
treedb89b8a972d6d76414146515c58719fb3865dfef
parent7befab856cffaa0357582033083dbc95e2c17000
winpr/crypt api changes and memory leak fixes

- winpr_HMAC_New() now just returnes the opaque WINPR_HMAC_CTX* pointer
  which has to be passed to winpr_HMAC_Init() for (re)initialization
  and since winpr_HMAC_Final() no more frees the context you always have to
  use the new function winpr_HMAC_Free() once winpr_HMAC_New() has succeded

- winpr_Digest_New() now just returns the opaque WINPR_DIGEST_CTX* pointer
  which has to be passed to winpr_Digest_Init() for (re)initialization
  and since winpr_Digest_Final() no more frees the context you always have to
  use the new function winpr_Digest_Free() once winpr_Digest_New() has succeded
12 files changed:
libfreerdp/core/connection.c
libfreerdp/core/info.c
libfreerdp/core/security.c
libfreerdp/crypto/tls.c
winpr/include/winpr/crypto.h
winpr/libwinpr/crypto/cipher.c
winpr/libwinpr/crypto/hash.c
winpr/libwinpr/crypto/test/TestCryptoHash.c
winpr/libwinpr/sspi/NTLM/ntlm.c
winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c
winpr/libwinpr/sspi/NTLM/ntlm_compute.c
winpr/libwinpr/utils/ntlm.c