Commit 63537ca
authored
fix(crypto): support OpenSSL 1.1.x for ECDSA cert generation (#61)
EVP_EC_gen("P-256") is OpenSSL 3.0+ only. Wrap it in an
OPENSSL_VERSION_NUMBER guard with an EC_KEY_new_by_curve_name /
EVP_PKEY_assign_EC_KEY fallback so DTLS cert generation also builds
against OpenSSL 1.1.x (Debian 11 Bullseye libssl), unblocking the
radxa-cubie-a7z UVC publisher example whose BSP sysroot ships 1.1.1.
OpenSSL 3.0 path is unchanged.1 parent 84c590d commit 63537ca
1 file changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
107 | 134 | | |
108 | 135 | | |
109 | 136 | | |
| |||
0 commit comments