[SERVER-64595] must invoke OpenSSL_add_all_algorithms in openssl related unit tests Created: 16/Mar/22  Updated: 29/Oct/23  Resolved: 18/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Sergey Galtsev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:
  • spawn amazon2-arm64-large
  • clone mongodb repository (enterprise not required)
  • configure venv
  • activate and run test:

buildscripts/scons.py --dbg=on --opt=off \
     --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars \
     +aead_encryption_test

expect: "Unrecognized AES key size/cipher mode."

Sprint: Security 2022-03-21
Participants:
Linked BF Score: 68

 Description   

Re: BF-24504

According to following post, OpenSSL must be initialized by calling OpenSSL_add_all_algorithms(). If not done, it prevents EVP_get_cipherbyname from properly functioning on some platforms

Platform issue verified on: amazon2-arm64-large image



 Comments   
Comment by Githook User [ 16/Mar/22 ]

Author:

{'name': 'Sergey Galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-64595 add ref to openssl_init for proper initialization
Branch: SERVER-64595
https://github.com/mongodb/mongo/commit/370fe6f88881663769c7a6a847b2d18e57514be0

Generated at Thu Feb 08 06:00:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.