def partially_packed_header(self, xid, body): p = RPCPacker() p.pack_uint(xid) p.pack_enum(CALL) p.pack_uint(body.rpcvers) p.pack_uint(body.prog) p.pack_uint(body.vers) p.pack_uint(body.proc) cred = opaque_auth(RPCSEC_GSS, self.pack_cred(body.cred.body)) p.pack_opaque_auth(cred) return p.get_buffer()
def pack_cred(py_cred): p = RPCPacker() p.pack_authsys_parms(py_cred) return p.get_buffer()