Ignore:
Timestamp:
Jan 15, 2017, 9:08:12 AM (9 years ago)
Author:
Paul Smedley
Message:

Add support for enabling/disabling encryption - fixes #289

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-3.0/src/ndpsmb.c

    r1002 r1006  
    112112        {ND_PROP_ULONG, 0, "KRB5SUPPORT", "0"},
    113113        {ND_PROP_ULONG, 0, "NTLMv1SUPPORT", "0"},
     114        {ND_PROP_ULONG, 0, "ENCRYPTIONSUPPORT", "0"},
    114115        {ND_PROP_STRING, 0, NULL, NULL}
    115116};
     
    368369        pRes->krb5support = 0;
    369370        pRes->ntlmv1support = 0;
     371        pRes->encryptionsupport = 0;
    370372        pRes->pdc = NULL;
    371373
     
    498500                }
    499501        }
    500 
     502        t = 0;
     503        rc = ph->fsphQueryUlongProperty (properties, "ENCRYPTIONSUPPORT", &t);
     504        if (!rc)
     505        {
     506                if (t > 1)
     507                {
     508                        rc = ERROR_INVALID_PARAMETER;
     509                }
     510                else
     511                {
     512                        pRes->encryptionsupport = t;
     513                }
     514        }
    501515        t = 0;
    502516        rc = ph->fsphQueryUlongProperty (properties, "CTO", &t);
Note: See TracChangeset for help on using the changeset viewer.