Skip to content

Commit a7c7444

Browse files
authored
Merge pull request #3 from freeswitch/v3.4.0
Update OpenSSL to 3.4.0
2 parents 1ff8592 + 2326379 commit a7c7444

150 files changed

Lines changed: 29049 additions & 17303 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/windows.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7+
- master
78
- v1.1.x
9+
- v3.4.x
810
pull_request:
911
branches:
12+
- master
1013
- v1.1.x
14+
- v3.4.x
1115

1216
jobs:
1317
build:

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ x64/*
55
out/*
66
openssl-1.*
77
openssl-1.*/
8+
openssl-3.*
9+
openssl-3.*/
810
7za*.exe
911
pax_global_header
1012
build-*

‎include/openssl/__DECC_INCLUDE_EPILOGUE.H‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
33
*
4-
* Licensed under the OpenSSL license (the "License"). You may not use
4+
* Licensed under the Apache License 2.0 (the "License"). You may not use
55
* this file except in compliance with the License. You can obtain a copy
66
* in the file LICENSE in the source distribution or at
77
* https://www.openssl.org/source/license.html

‎include/openssl/__DECC_INCLUDE_PROLOGUE.H‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
33
*
4-
* Licensed under the OpenSSL license (the "License"). You may not use
4+
* Licensed under the Apache License 2.0 (the "License"). You may not use
55
* this file except in compliance with the License. You can obtain a copy
66
* in the file LICENSE in the source distribution or at
77
* https://www.openssl.org/source/license.html

‎include/openssl/aes.h‎

Lines changed: 46 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
/*
2-
* Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
2+
* Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
33
*
4-
* Licensed under the OpenSSL license (the "License"). You may not use
4+
* Licensed under the Apache License 2.0 (the "License"). You may not use
55
* this file except in compliance with the License. You can obtain a copy
66
* in the file LICENSE in the source distribution or at
77
* https://www.openssl.org/source/license.html
88
*/
99

10-
#ifndef HEADER_AES_H
11-
# define HEADER_AES_H
10+
#ifndef OPENSSL_AES_H
11+
# define OPENSSL_AES_H
12+
# pragma once
13+
14+
# include <openssl/macros.h>
15+
# ifndef OPENSSL_NO_DEPRECATED_3_0
16+
# define HEADER_AES_H
17+
# endif
1218

1319
# include <openssl/opensslconf.h>
1420

@@ -17,72 +23,85 @@
1723
extern "C" {
1824
# endif
1925

20-
# define AES_ENCRYPT 1
21-
# define AES_DECRYPT 0
22-
23-
/*
24-
* Because array size can't be a const in C, the following two are macros.
25-
* Both sizes are in bytes.
26-
*/
27-
# define AES_MAXNR 14
2826
# define AES_BLOCK_SIZE 16
2927

28+
# ifndef OPENSSL_NO_DEPRECATED_3_0
29+
30+
# define AES_ENCRYPT 1
31+
# define AES_DECRYPT 0
32+
33+
# define AES_MAXNR 14
34+
35+
3036
/* This should be a hidden type, but EVP requires that the size be known */
3137
struct aes_key_st {
32-
# ifdef AES_LONG
38+
# ifdef AES_LONG
3339
unsigned long rd_key[4 * (AES_MAXNR + 1)];
34-
# else
40+
# else
3541
unsigned int rd_key[4 * (AES_MAXNR + 1)];
36-
# endif
42+
# endif
3743
int rounds;
3844
};
3945
typedef struct aes_key_st AES_KEY;
4046

41-
const char *AES_options(void);
42-
47+
# endif
48+
# ifndef OPENSSL_NO_DEPRECATED_3_0
49+
OSSL_DEPRECATEDIN_3_0 const char *AES_options(void);
50+
OSSL_DEPRECATEDIN_3_0
4351
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
4452
AES_KEY *key);
53+
OSSL_DEPRECATEDIN_3_0
4554
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
4655
AES_KEY *key);
47-
56+
OSSL_DEPRECATEDIN_3_0
4857
void AES_encrypt(const unsigned char *in, unsigned char *out,
4958
const AES_KEY *key);
59+
OSSL_DEPRECATEDIN_3_0
5060
void AES_decrypt(const unsigned char *in, unsigned char *out,
5161
const AES_KEY *key);
52-
62+
OSSL_DEPRECATEDIN_3_0
5363
void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
5464
const AES_KEY *key, const int enc);
65+
OSSL_DEPRECATEDIN_3_0
5566
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
5667
size_t length, const AES_KEY *key,
5768
unsigned char *ivec, const int enc);
69+
OSSL_DEPRECATEDIN_3_0
5870
void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
5971
size_t length, const AES_KEY *key,
6072
unsigned char *ivec, int *num, const int enc);
73+
OSSL_DEPRECATEDIN_3_0
6174
void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,
6275
size_t length, const AES_KEY *key,
6376
unsigned char *ivec, int *num, const int enc);
77+
OSSL_DEPRECATEDIN_3_0
6478
void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,
6579
size_t length, const AES_KEY *key,
6680
unsigned char *ivec, int *num, const int enc);
81+
OSSL_DEPRECATEDIN_3_0
6782
void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,
6883
size_t length, const AES_KEY *key,
6984
unsigned char *ivec, int *num);
85+
7086
/* NB: the IV is _two_ blocks long */
87+
OSSL_DEPRECATEDIN_3_0
7188
void AES_ige_encrypt(const unsigned char *in, unsigned char *out,
7289
size_t length, const AES_KEY *key,
7390
unsigned char *ivec, const int enc);
7491
/* NB: the IV is _four_ blocks long */
92+
OSSL_DEPRECATEDIN_3_0
7593
void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,
76-
size_t length, const AES_KEY *key,
77-
const AES_KEY *key2, const unsigned char *ivec,
78-
const int enc);
79-
94+
size_t length, const AES_KEY *key, const AES_KEY *key2,
95+
const unsigned char *ivec, const int enc);
96+
OSSL_DEPRECATEDIN_3_0
8097
int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
81-
unsigned char *out,
82-
const unsigned char *in, unsigned int inlen);
98+
unsigned char *out, const unsigned char *in,
99+
unsigned int inlen);
100+
OSSL_DEPRECATEDIN_3_0
83101
int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
84-
unsigned char *out,
85-
const unsigned char *in, unsigned int inlen);
102+
unsigned char *out, const unsigned char *in,
103+
unsigned int inlen);
104+
# endif
86105

87106

88107
# ifdef __cplusplus

0 commit comments

Comments
 (0)