Commit e47ad0a
Fix deprecated OpenSSL calls in diameter_client tcp_comm
- Replace TLSv1_client_method() with TLS_client_method() for OpenSSL 1.1+
- Replace SSL_library_init()/SSL_load_error_strings() with OPENSSL_init_ssl()
- Add version-conditional const qualifier on SSL_METHOD pointer
- Fix undefined variable ctx -> conn_st->ctx in SSL_CTX_set_verify_depth
All changes use #if OPENSSL_VERSION_NUMBER guards to maintain backward
compatibility with OpenSSL 1.0.2 (RHEL 7).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2474909 commit e47ad0a
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
147 | 154 | | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
195 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
199 | | - | |
| 211 | + | |
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
| |||
246 | 258 | | |
247 | 259 | | |
248 | 260 | | |
249 | | - | |
| 261 | + | |
250 | 262 | | |
251 | 263 | | |
252 | 264 | | |
| |||
0 commit comments