The hasOp method would appear to support the testing for any SSL_OP_* but it only checks one type of operation for the moment. This should be expanded to allow for all documented SSL_OP_* options to be tested.
This bug blocks bug #53481 because of an incorrect assumption that hasOp would support arbitrary option discovery.
Fixed in trunk and 1.1.x. Will be included in 1.1.25 onward.