Commit e152ea30 authored by jan.koester's avatar jan.koester
Browse files

test

parent 2dfd99b2
Loading
Loading
Loading
Loading
+4 −1
Changes for test/mit_interop.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@ int failures = 0;

/* GSS_C_INQ_SSPI_SESSION_KEY, 1.2.840.113554.1.2.2.5.5 (gssapi_krb5.h, without its krb5.h) */
gss_OID_desc InqSessionKey = {11, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x05"};
/* GSS_C_NT_HOSTBASED_SERVICE, 1.2.840.113554.1.2.1.4: a variable in MIT's library, a macro in
 * Heimdal's -- as a constant here the test links against either */
gss_OID_desc NtHostbased = {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04"};

template <class F> bool throws_(F f) {
    try {
@@ -231,7 +234,7 @@ void mitClientOurAcceptor(const std::string &dir) {
    OM_uint32 minor, major;
    gss_name_t target;
    gss_buffer_desc nb{strlen("cifs@localhost"), (void *)"cifs@localhost"};
    gss_import_name(&minor, &nb, GSS_C_NT_HOSTBASED_SERVICE, &target);
    gss_import_name(&minor, &nb, &NtHostbased, &target);
    gss_OID_desc spnegoMech = {6, (void *)"\x2b\x06\x01\x05\x05\x02"};
    gss_ctx_id_t ctx = GSS_C_NO_CONTEXT;
    gss_buffer_desc out{0, nullptr};