Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2602

Display human-readable code for Secure Transport errors

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libmongoc

      According to Secure Transport Result Codes, a SecCopyErrorMessageString() function exists to translate error codes into human-readable strings. This might be used to improve the output of "TLS handshake failed: %d" messages, as is done for OpenSSL.

      Note that the function returns null if a string is not available, so that may be a case where the error message should fall back to displaying the original code. If there is prior art for how you handle this with OpenSSL (assuming it also has cases where no message is available), it'd probably be best to follow that here.

            Assignee:
            spencer.mckenney Spencer Mckenney
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: