Author: abartlet Date: 2004-10-08 10:16:34 +0000 (Fri, 08 Oct 2004) New Revision: 2859
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/auth&rev=2859&nolog=1 Log: It seems useful to allow the seal/unseal functions in gensec to pass though to the sign/check_sig functions. Andrew Bartlett Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c =================================================================== --- branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-10-08 09:37:55 UTC (rev 2858) +++ branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-10-08 10:16:34 UTC (rev 2859) @@ -315,6 +315,12 @@ return NT_STATUS_NOT_IMPLEMENTED; } if (!(gensec_security->want_features & GENSEC_WANT_SEAL)) { + if (gensec_security->want_features & GENSEC_WANT_SIGN) { + return gensec_check_packet(gensec_security, mem_ctx, + data, length, + whole_pdu, pdu_length, + sig); + } return NT_STATUS_INVALID_PARAMETER; } @@ -350,6 +356,12 @@ return NT_STATUS_NOT_IMPLEMENTED; } if (!(gensec_security->want_features & GENSEC_WANT_SEAL)) { + if (gensec_security->want_features & GENSEC_WANT_SIGN) { + return gensec_sign_packet(gensec_security, mem_ctx, + data, length, + whole_pdu, pdu_length, + sig); + } return NT_STATUS_INVALID_PARAMETER; }