From edd4679585b67efe9554486c04891fa82e9cd9c0 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Mon, 18 Nov 2024 17:04:29 -0800 Subject: [PATCH] fix --- source/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/crypto.c b/source/crypto.c index 8a913e14..cf984cc5 100644 --- a/source/crypto.c +++ b/source/crypto.c @@ -378,7 +378,7 @@ PyObject *aws_py_rsa_private_key_from_der_data(PyObject *self, PyObject *args) { goto on_done; } - struct aws_byte_cursor raw_der = aws_byte_cursor_from_buf(decoded_buffer); + struct aws_byte_cursor raw_der = aws_byte_cursor_from_buf(&decoded_buffer); struct aws_rsa_key_pair *key_pair = aws_rsa_key_pair_new_from_private_key_pkcs1(allocator, raw_der); @@ -417,7 +417,7 @@ PyObject *aws_py_rsa_public_key_from_der_data(PyObject *self, PyObject *args) { PyErr_AwsLastError(); goto on_done; } - + aws_byte_buf_init(&decoded_buffer, allocator, decoded_len); if (aws_base64_decode(&der_data_cur, &decoded_buffer)) { @@ -425,7 +425,7 @@ PyObject *aws_py_rsa_public_key_from_der_data(PyObject *self, PyObject *args) { goto on_done; } - struct aws_byte_cursor raw_der = aws_byte_cursor_from_buf(decoded_buffer); + struct aws_byte_cursor raw_der = aws_byte_cursor_from_buf(&decoded_buffer); struct aws_rsa_key_pair *key_pair = aws_rsa_key_pair_new_from_public_key_pkcs1(allocator, raw_der);