[YottaDB/DB/YDB#780] [V70000] Merge GT.M V7.0-000 changes to encryption plugin into YDBEncrypt repo
-
GT.M V7.0-000 in the YDB project changed the following files.
- sr_unix/gtm_tls_impl.c
- sr_unix/gtmcrypt_dbk_ref.c
- sr_unix/gtmcrypt_dbk_ref.h
- sr_unix/gtmcrypt_pk_ref.c
- sr_unix/gtmcrypt_ref.c
- sr_unix/gtmcrypt_util.c
- sr_unix/gtmcrypt_util.h
-
In YottaDB, these files have been moved to the YDBEncrypt repository/project. Therefore the above changes are incorporated to the following files in the YDBEncrypt project as part of this commit.
- YDBEncrypt/gtm_tls_impl.c
- YDBEncrypt/gtmcrypt_dbk_ref.c
- YDBEncrypt/gtmcrypt_dbk_ref.h
- YDBEncrypt/gtmcrypt_pk_ref.c
- YDBEncrypt/gtmcrypt_ref.c
- YDBEncrypt/gtmcrypt_util.c
- YDBEncrypt/gtmcrypt_util.h
-
While the incorporation was straightforward, one change was not incorporated as is and is noted below. In
sr_unix/gtm_tls_impl.c
, astrncpy()
call was unnecessary as we determined the length of the string using astrnlen()
call in the previous line. Therefore this was replaced with amemcpy()
call inYDBEncrypt/gtm_tls_impl.c
.