Alexey Serbin has posted comments on this change. Change subject: Use Traits to avoid duplicate code in SSL wrappers ......................................................................
Patch Set 3: (2 comments) http://gerrit.cloudera.org:8080/#/c/5767/3/src/kudu/security/ca/cert_management.cc File src/kudu/security/ca/cert_management.cc: PS3, Line 83: free > hrm, I didn't see a place where it was useful to use this, and didn't want I meant just have it instead of XXX_new() functions, make_ssl_new() would not be taking any parameters in most cases: auto x = make_ssl_new<X509>(); However, there some cases with BIO-related functions which would required passing some parameters anyway. It's your call -- even with current make_ssl_new() it is looks good to me. PS3, Line 135: switch (format) { : case DataFormat::DER: : CERT_RET_NOT_OK(Traits::write_der(bio, obj), "error exporting DER format"); : break; : case DataFormat::PEM: : CERT_RET_NOT_OK(Traits::write_pem(bio, obj), "error exporting PEM format"); : break; : } > yea, I agree. when we are converting from the wire protocol, we should be c ok, this sounds reasonable. Is there a flag to enable those warnings? -Wall does not give any warning with clang++ (llvm 7.3.0) -- To view, visit http://gerrit.cloudera.org:8080/5767 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: If1c44857358fc82f2694dff021b9f2ac3641313a Gerrit-PatchSet: 3 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Todd Lipcon <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Dan Burkert <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon <[email protected]> Gerrit-HasComments: Yes
