@@ -215,7 +215,6 @@ class NtcChannel : public bmqio::Channel,
215215 bdlmt::Signaler<WatermarkFnType> d_watermarkSignaler;
216216 bdlmt::Signaler<CloseFnType> d_closeSignaler;
217217 bmqio::ChannelFactory::ResultCallback d_resultCallback;
218- bsl::shared_ptr<ntci::Upgradable> d_upgradable;
219218 bslma::Allocator* d_allocator_p;
220219
221220 private:
@@ -420,22 +419,21 @@ class NtcChannel : public bmqio::Channel,
420419 // / Set the write queue high watermark to the specified `highWatermark`.
421420 void setWriteQueueHighWatermark (int highWatermark);
422421
423- // / Set the upgradable handle if this channel has been upgraded.
424- void setUpgradable (const bsl::shared_ptr<ntci::Upgradable>& upgradable);
425-
426422 // / Assume the TLS server role and begin upgrading the socket from
427423 // / being unencrypted to being encrypted with TLS. Invoke the specified
428424 // / `upgradeCallback` when the socket has completed upgrading to TLS.
429- void
430- upgrade (const bsl::shared_ptr<ntci::EncryptionServer>& encryptionServer,
425+ int
426+ upgrade (bmqio::Status* status,
427+ const bsl::shared_ptr<ntci::EncryptionServer>& encryptionServer,
431428 const ntca::UpgradeOptions& options,
432429 const ntci::UpgradeFunction& upgradeCallback);
433430
434431 // / Assume the TLS client role and begin upgrading the socket from
435432 // / being unencrypted to being encrypted with TLS. Invoke the specified
436433 // / `upgradeCallback` when the socket has completed upgrading to TLS.
437- void
438- upgrade (const bsl::shared_ptr<ntci::EncryptionClient>& encryptionClient,
434+ int
435+ upgrade (bmqio::Status* status,
436+ const bsl::shared_ptr<ntci::EncryptionClient>& encryptionClient,
439437 const ntca::UpgradeOptions& options,
440438 const ntci::UpgradeFunction& upgradeCallback);
441439
@@ -464,11 +462,6 @@ class NtcChannel : public bmqio::Channel,
464462 // / Return the socket interface for this channel. This function is
465463 // / undefined unless the channel has succesfully established a connection.
466464 const ntci::StreamSocket& streamSocket () const ;
467-
468- // / Return the upgradable handle for the channel.
469- const bsl::shared_ptr<ntci::Upgradable>& upgradable () const ;
470-
471- bsl::shared_ptr<ntci::Upgradable>& upgradable ();
472465};
473466
474467// =====================
@@ -479,16 +472,6 @@ class NtcChannel : public bmqio::Channel,
479472struct NtcChannelUtil {
480473 // CLASS METHODS
481474
482- // / \brief Return a reference providing const access to the name of the
483- // / property used to define the encryption client for liseners.
484- // / This property must be a `bsl::shared_ptr<ntci::EncryptionClient>`.
485- static bsl::string_view encryptionClientProperty ();
486-
487- // / \brief Return a reference providing const access to the name of the
488- // / property used to define the callback on a TLS upgrade.
489- // / This property must be a `bsl::shared_ptr<ntci::UpgradeFunction>`.
490- static bsl::string_view upgradeCallbackProperty ();
491-
492475 // / Load into the specified `status`, if defined, the description of
493476 // / the specified `error` assigned to the specified `category` that
494477 // / was detected when performing the specified `operation`.
@@ -526,18 +509,16 @@ class NtcListener : public bmqio::ChannelFactoryOperationHandle,
526509 };
527510
528511 // INSTANCE DATA
529- bslmt::Mutex d_mutex;
530- bsl::shared_ptr<ntci::Interface> d_interface_sp;
531- bsl::shared_ptr<ntci::ListenerSocket> d_listenerSocket_sp;
532- bsl::string d_localUri;
533- State d_state;
534- bmqio::ListenOptions d_options;
535- bmqvt::PropertyBag d_properties;
536- bdlmt::Signaler<CloseFnType> d_closeSignaler;
537- bmqio::ChannelFactory::ResultCallback d_resultCallback;
538- bsl::shared_ptr<ntci::EncryptionServer> d_encryptionServer_sp;
539- ntci::UpgradeFunction d_upgradeCallback;
540- bslma::Allocator* d_allocator_p;
512+ bslmt::Mutex d_mutex;
513+ bsl::shared_ptr<ntci::Interface> d_interface_sp;
514+ bsl::shared_ptr<ntci::ListenerSocket> d_listenerSocket_sp;
515+ bsl::string d_localUri;
516+ State d_state;
517+ bmqio::ListenOptions d_options;
518+ bmqvt::PropertyBag d_properties;
519+ bdlmt::Signaler<CloseFnType> d_closeSignaler;
520+ bmqio::ChannelFactory::ResultCallback d_resultCallback;
521+ bslma::Allocator* d_allocator_p;
541522
542523 private:
543524 // NOT IMPLEMENTED
@@ -556,10 +537,6 @@ class NtcListener : public bmqio::ChannelFactoryOperationHandle,
556537 // / Process the closure of the socket.
557538 void processClose (const bmqio::Status& status);
558539
559- // / Process the upgrade of a socket
560- void processUpgrade (const bsl::shared_ptr<ntci::Upgradable>& upgradable,
561- const ntca::UpgradeEvent& upgradeEvent);
562-
563540 public:
564541 // TRAITS
565542 BSLMF_NESTED_TRAIT_DECLARATION (NtcListener, bslma::UsesBslmaAllocator)
@@ -638,16 +615,6 @@ struct NtcListenerUtil {
638615 // / port to which the listening socket is bound.
639616 static bslstl::StringRef listenPortProperty ();
640617
641- // / \brief Return a reference providing const access to the name of the
642- // / property used to define the encryption server for liseners.
643- // / This property must be a `bsl::shared_ptr<ntci::EncryptionServer>`.
644- static bsl::string_view encryptionServerProperty ();
645-
646- // / \brief Return a reference providing const access to the name of the
647- // / property used to define the callback on a TLS upgrade.
648- // / This property must be a `bsl::shared_ptr<ntci::UpgradeFunction>`.
649- static bsl::string_view upgradeCallbackProperty ();
650-
651618 // / Load into the specified `status`, if defined, the description of
652619 // / the specified `error` assigned to the specified `category` that
653620 // / was detected when performing the specified `operation`.
0 commit comments