Commit ceb1d5e
crypto: avoid taking ownership of OpenSSL objects
It is often unnecessary to obtain (shared) ownership of OpenSSL objects
in this code, and it generally is more costly to do so as opposed to
just obtaining a pointer to the respective OpenSSL object. Therefore,
this patch replaces various OpenSSL function calls that take ownership
with ones that do not.
Refs: #53436
PR-URL: #53460
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>1 parent 57b8b8e commit ceb1d5eCopy full SHA for ceb1d5e
3 files changed
+34-34Lines changed: 34 additions & 34 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/crypto/crypto_common.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_common.cc-8Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | 24 | |
33 | 25 | |
34 | 26 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
13 | 21 | |
14 | 22 | |
15 | 23 | |
|
Collapse file
+26-26Lines changed: 26 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
289 | 289 | |
290 | 290 | |
291 | 291 | |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
| 292 | + |
| 293 | + |
| 294 | + |
297 | 295 | |
298 | 296 | |
299 | 297 | |
| ||
327 | 325 | |
328 | 326 | |
329 | 327 | |
330 | | - |
| 328 | + |
331 | 329 | |
332 | 330 | |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | | - |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
339 | 338 | |
340 | 339 | |
341 | 340 | |
342 | 341 | |
343 | | - |
| 342 | + |
344 | 343 | |
345 | 344 | |
346 | 345 | |
| ||
367 | 366 | |
368 | 367 | |
369 | 368 | |
370 | | - |
| 369 | + |
371 | 370 | |
372 | 371 | |
373 | | - |
374 | | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
379 | 379 | |
380 | 380 | |
381 | 381 | |
382 | 382 | |
383 | | - |
| 383 | + |
384 | 384 | |
385 | 385 | |
386 | 386 | |
| ||
391 | 391 | |
392 | 392 | |
393 | 393 | |
394 | | - |
| 394 | + |
395 | 395 | |
396 | 396 | |
397 | 397 | |
398 | 398 | |
399 | 399 | |
400 | | - |
| 400 | + |
401 | 401 | |
402 | 402 | |
403 | | - |
| 403 | + |
404 | 404 | |
405 | 405 | |
406 | 406 | |
407 | | - |
| 407 | + |
408 | 408 | |
409 | 409 | |
410 | 410 | |
| ||
420 | 420 | |
421 | 421 | |
422 | 422 | |
423 | | - |
| 423 | + |
424 | 424 | |
425 | 425 | |
426 | 426 | |
|
0 commit comments