Thanks to all that have answered. This is the code I've come up with and works without a fuzz:
define variable enumHelper1 as class System.Enum no-undo.
define variable enumHelper2 as class System.Enum no-undo.
assign enumHelper1 = Progress.Util.EnumHelper:or ( SecurityProtocolType:Tls, SecurityProtocolType:Tls11 ).
assign enumHelper2 = Progress.Util.EnumHelper:or ( cast ( enumHelper1, SecurityProtocolType ), SecurityProtocolType:Tls12 ).
assign ServicePointManager:SecurityProtocol = cast ( enumHelper2, SecurityProtocolType ).
Of course this works only with .NET 4.5 ( TLS 1.2 support ) ...
Thanks!
Progress, Telerik, Ipswitch and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See
Trademarks
for appropriate markings.