diff --git a/groups/ntc/ntcf/ntcf_system.cpp b/groups/ntc/ntcf/ntcf_system.cpp index 189e545d3..748f7f8b6 100644 --- a/groups/ntc/ntcf/ntcf_system.cpp +++ b/groups/ntc/ntcf/ntcf_system.cpp @@ -1523,6 +1523,10 @@ ntsa::Error System::generateCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1550,6 +1554,10 @@ ntsa::Error System::generateCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1577,6 +1585,10 @@ ntsa::Error System::generateCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1604,6 +1616,10 @@ ntsa::Error System::generateCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1629,6 +1645,10 @@ ntsa::Error System::loadCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1649,6 +1669,10 @@ ntsa::Error System::loadCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1670,6 +1694,10 @@ ntsa::Error System::saveCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1689,6 +1717,10 @@ ntsa::Error System::saveCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1707,6 +1739,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1726,6 +1762,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1746,6 +1786,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1765,6 +1809,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1785,6 +1833,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1804,6 +1856,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1824,6 +1880,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1843,6 +1903,10 @@ ntsa::Error System::encodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1864,6 +1928,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1884,6 +1952,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1906,6 +1978,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1926,6 +2002,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1948,6 +2028,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1968,6 +2052,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -1990,6 +2078,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2010,6 +2102,10 @@ ntsa::Error System::decodeCertificate( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2031,6 +2127,10 @@ ntsa::Error System::generateKey(ntca::EncryptionKey* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2049,6 +2149,10 @@ ntsa::Error System::generateKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2067,6 +2171,10 @@ ntsa::Error System::loadKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2086,6 +2194,10 @@ ntsa::Error System::loadKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2104,6 +2216,10 @@ ntsa::Error System::saveKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2123,6 +2239,10 @@ ntsa::Error System::saveKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2141,6 +2261,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2160,6 +2284,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2178,6 +2306,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2197,6 +2329,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2215,6 +2351,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2234,6 +2374,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2252,6 +2396,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2271,6 +2419,10 @@ ntsa::Error System::encodeKey( error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2289,6 +2441,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2308,6 +2464,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2329,6 +2489,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2348,6 +2512,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2369,6 +2537,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2388,6 +2560,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2409,6 +2585,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) { @@ -2428,6 +2608,10 @@ ntsa::Error System::decodeKey(bsl::shared_ptr* result, error = ntcf::System::initialize(); BSLS_ASSERT_OPT(!error); +#if NTC_BUILD_WITH_OPENSSL + ntctls::Plugin::initialize(); +#endif + bsl::shared_ptr encryptionDriver; error = ntcs::Plugin::lookupEncryptionDriver(&encryptionDriver); if (error) {