Ignore:
Timestamp:
Jan 15, 2010, 8:23:30 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (source)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/include/ads.h

    r206 r370  
    340340#define KRB5_ENV_CCNAME "KRB5CCNAME"
    341341
    342 /* Heimdal uses a slightly different name */
    343 #if defined(HAVE_ENCTYPE_ARCFOUR_HMAC_MD5)
    344 #define ENCTYPE_ARCFOUR_HMAC ENCTYPE_ARCFOUR_HMAC_MD5
    345 #endif
    346 
    347 /* The older versions of heimdal that don't have this
    348    define don't seem to use it anyway.  I'm told they
    349    always use a subkey */
    350 #ifndef HAVE_AP_OPTS_USE_SUBKEY
    351 #define AP_OPTS_USE_SUBKEY 0
    352 #endif
    353 
    354342#define WELL_KNOWN_GUID_COMPUTERS       "AA312825768811D1ADED00C04FD8D5CD"
    355343#define WELL_KNOWN_GUID_USERS           "A9D1CA15768811D1ADED00C04FD8D5CD"
    356 
    357 #ifndef KRB5_ADDR_NETBIOS
    358 #define KRB5_ADDR_NETBIOS 0x14
    359 #endif
    360 
    361 #ifndef KRB5KRB_ERR_RESPONSE_TOO_BIG
    362 #define KRB5KRB_ERR_RESPONSE_TOO_BIG (-1765328332L)
    363 #endif
    364 
    365 #ifdef HAVE_KRB5
    366 typedef struct {
    367         NTSTATUS ntstatus;
    368         uint32 unknown1;
    369         uint32 unknown2; /* 0x00000001 */
    370 } KRB5_EDATA_NTSTATUS;
    371 
    372 typedef struct {
    373 #if defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) /* MIT */
    374         krb5_address **addrs;
    375 #elif defined(HAVE_KRB5_ADDRESSES) /* Heimdal */
    376         krb5_addresses *addrs;
    377 #else
    378 #error UNKNOWN_KRB5_ADDRESS_TYPE
    379 #endif /* defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) */
    380 } smb_krb5_addresses;
    381 
    382 #ifdef HAVE_KRB5_KEYBLOCK_KEYVALUE /* Heimdal */
    383 #define KRB5_KEY_TYPE(k)        ((k)->keytype)
    384 #define KRB5_KEY_LENGTH(k)      ((k)->keyvalue.length)
    385 #define KRB5_KEY_DATA(k)        ((k)->keyvalue.data)
    386 #define KRB5_KEY_DATA_CAST      void
    387 #else /* MIT */
    388 #define KRB5_KEY_TYPE(k)        ((k)->enctype)
    389 #define KRB5_KEY_LENGTH(k)      ((k)->length)
    390 #define KRB5_KEY_DATA(k)        ((k)->contents)
    391 #define KRB5_KEY_DATA_CAST      krb5_octet
    392 #endif /* HAVE_KRB5_KEYBLOCK_KEYVALUE */
    393 
    394 #ifdef HAVE_KRB5_KEYTAB_ENTRY_KEY               /* MIT */
    395 #define KRB5_KT_KEY(k)          (&(k)->key)
    396 #elif HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK          /* Heimdal */
    397 #define KRB5_KT_KEY(k)          (&(k)->keyblock)
    398 #else
    399 #error krb5_keytab_entry has no key or keyblock member
    400 #endif /* HAVE_KRB5_KEYTAB_ENTRY_KEY */
    401 
    402 #endif /* HAVE_KRB5 */
    403344
    404345enum ads_extended_dn_flags {
Note: See TracChangeset for help on using the changeset viewer.