Changeset 920 for trunk/server/libcli


Ignore:
Timestamp:
Jun 9, 2016, 2:23:12 PM (10 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: apply latest security patches to trunk

Location:
trunk/server
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/libcli/auth/ntlmssp.h

    r918 r920  
    8484        DATA_BLOB session_key;
    8585
     86
    8687        uint32_t neg_flags; /* the current state of negotiation with the NTLMSSP partner */
    8788
  • trunk/server/libcli/auth/proto.h

    r918 r920  
    140140                      DATA_BLOB *lm_response, DATA_BLOB *nt_response,
    141141                      DATA_BLOB *lm_session_key, DATA_BLOB *user_session_key) ;
     142
     143
     144
     145
     146
    142147
    143148/***********************************************************
  • trunk/server/libcli/auth/smbencrypt.c

    r918 r920  
    2727#include "../lib/crypto/crypto.h"
    2828#include "../libcli/auth/libcli_auth.h"
    29 #include "../librpc/gen_ndr/ntlmssp.h"
     29#include "../librpc/gen_ndr/ntlmssp.h"
    3030
    3131void SMBencrypt_hash(const uint8_t lm_hash[16], const uint8_t *c8, uint8_t p24[24])
     
    356356
    357357        /* Deliberately ignore return here.. */
    358         (void)msrpc_gen(mem_ctx, &names_blob,
    359                   "aaa",
    360                   MsvAvNbDomainName, domain,
    361                   MsvAvNbComputerName, hostname,
    362                   MsvAvEOL, "");
     358        if (hostname != NULL) {
     359                (void)msrpc_gen(mem_ctx, &names_blob,
     360                          "aaa",
     361                          MsvAvNbDomainName, domain,
     362                          MsvAvNbComputerName, hostname,
     363                          MsvAvEOL, "");
     364        } else {
     365                (void)msrpc_gen(mem_ctx, &names_blob,
     366                          "aa",
     367                          MsvAvNbDomainName, domain,
     368                          MsvAvEOL, "");
     369        }
    363370        return names_blob;
    364371}
     
    516523}
    517524
     525
     526
     527
     528
     529
     530
     531
     532
     533
     534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
     548
     549
     550
     551
     552
     553
     554
     555
     556
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
     585
     586
     587
     588
     589
     590
     591
     592
     593
     594
     595
     596
     597
     598
     599
     600
     601
     602
     603
     604
     605
     606
     607
     608
     609
     610
     611
     612
     613
     614
     615
     616
     617
     618
     619
     620
     621
     622
     623
     624
     625
     626
     627
     628
     629
     630
     631
     632
     633
     634
     635
     636
     637
     638
     639
     640
     641
     642
     643
     644
     645
     646
     647
     648
     649
     650
     651
     652
     653
     654
     655
     656
     657
     658
     659
     660
     661
     662
     663
     664
    518665/***********************************************************
    519666 encode a password buffer with a unicode password.  The buffer
  • trunk/server/libcli/auth/wscript_build

    r918 r920  
    2020bld.SAMBA_SUBSYSTEM('LIBCLI_AUTH',
    2121        source='credentials.c session.c smbencrypt.c smbdes.c',
    22         public_deps='MSRPC_PARSE',
     22        public_deps='MSRPC_PARSE',
    2323        public_headers='credentials.h:domain_credentials.h'
    2424        )
Note: See TracChangeset for help on using the changeset viewer.