From 9a163e22ec3d552e2161d332e66ada656cee4c4e Mon Sep 17 00:00:00 2001 From: Andy Jewell Date: Thu, 25 Aug 2022 16:44:52 -0400 Subject: [PATCH] fix: v1 deprecation --- CHANGELOG.md | 11 +++++++++++ CMakeLists.txt | 2 +- source/session.c | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cc4cb5c8..3237ab418 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 1.9.2 -- 2022-08-30 + +Deprecation +----------- +* This major version (1.x) of the AWS Encryption SDK for C has reached End-of-Support. It will no longer receive security updates or bug fixes. Consider updating to the latest version of the AWS Encryption SDK. + +Features +-------- +* Warn on usage + + ## 1.9.1 -- 2021-10-20 ### Maintenance diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a7454a63..edfd7c4de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ set(PROJECT_NAME aws-encryption-sdk) # Version number of the SDK to be consumed by C code and Doxygen set(MAJOR 1) set(MINOR 9) -set(PATCH 1) +set(PATCH 2) # Compiler feature tests and feature flags set(USE_ASM TRUE diff --git a/source/session.c b/source/session.c index e1e5616fa..c3028fd6f 100644 --- a/source/session.c +++ b/source/session.c @@ -70,6 +70,11 @@ int aws_cryptosdk_session_reset(struct aws_cryptosdk_session *session, enum aws_ static struct aws_cryptosdk_session *aws_cryptosdk_session_new( struct aws_allocator *allocator, enum aws_cryptosdk_mode mode) { + fprintf( + stderr, + "WARNING: This major version (1.x) of the AWS Encryption SDK for C has reached End-of-Support.\n" + "It will no longer receive security updates or bug fixes.\n" + "Consider updating to the latest version of the AWS Encryption SDK.\n"); struct aws_cryptosdk_session *session = aws_mem_acquire(allocator, sizeof(struct aws_cryptosdk_session)); if (!session) {