Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/libcli/auth/smbencrypt.c

    r740 r746  
    100100void E_md5hash(const uint8_t salt[16], const uint8_t nthash[16], uint8_t hash_out[16])
    101101{
    102         struct MD5Context tctx;
     102        MD5_CTX tctx;
    103103        MD5Init(&tctx);
    104104        MD5Update(&tctx, salt, 16);
     
    169169bool ntv2_owf_gen(const uint8_t owf[16],
    170170                  const char *user_in, const char *domain_in,
    171                   bool upper_case_domain, /* Transform the domain into UPPER case */
    172171                  uint8_t kr_buf[16])
    173172{
     
    197196                talloc_free(mem_ctx);
    198197                return false;
    199         }
    200 
    201         if (upper_case_domain) {
    202                 domain_in = strupper_talloc(mem_ctx, domain_in);
    203                 if (domain_in == NULL) {
    204                         talloc_free(mem_ctx);
    205                         return false;
    206                 }
    207198        }
    208199
     
    475466           This prevents username swapping during the auth exchange
    476467        */
    477         if (!ntv2_owf_gen(nt_hash, user, domain, true, ntlm_v2_hash)) {
     468        if (!ntv2_owf_gen(nt_hash, user, domain, ntlm_v2_hash)) {
    478469                return false;
    479470        }
     
    624615void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532], const DATA_BLOB *psession_key)
    625616{
    626         struct MD5Context tctx;
     617        MD5_CTX tctx;
    627618        unsigned char key_out[16];
    628619
     
    704695{
    705696        uint8_t buffer[516];
    706         struct MD5Context ctx;
     697        MD5_CTX ctx;
    707698        struct wkssvc_PasswordBuffer *my_pwd_buf = NULL;
    708699        DATA_BLOB confounded_session_key;
     
    742733{
    743734        uint8_t buffer[516];
    744         struct MD5Context ctx;
     735        MD5_CTX ctx;
    745736        size_t pwd_len;
    746737
Note: See TracChangeset for help on using the changeset viewer.