Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/source4/heimdal/lib/krb5/krb5_locl.h

    r414 r740  
    33 * (Royal Institute of Technology, Stockholm, Sweden).
    44 * All rights reserved.
     5 *
     6 * Portions Copyright (c) 2009 Apple Inc. All rights reserved.
    57 *
    68 * Redistribution and use in source and binary forms, with or without
     
    4648#include <limits.h>
    4749
     50#include <krb5-types.h>
     51
    4852#ifdef HAVE_SYS_TYPES_H
    4953#include <sys/types.h>
     
    114118#include <sys/file.h>
    115119#endif
     120
     121#include <com_err.h>
     122
     123#include <heimbase.h>
    116124
    117125#define HEIMDAL_TEXTDOMAIN "heimdal_krb5"
     
    152160
    153161/* XXX glue for pkinit */
     162struct hx509_certs_data;
    154163struct krb5_pk_identity;
    155164struct krb5_pk_cert;
     
    170179#include <hx509.h>
    171180#endif
     181
     182#include "crypto.h"
     183
    172184#include <krb5-private.h>
    173185
     
    176188#define ALLOC(X, N) (X) = calloc((N), sizeof(*(X)))
    177189#define ALLOC_SEQ(X, N) do { (X)->len = (N); ALLOC((X)->val, (N)); } while(0)
     190
     191#ifndef PATH_SEP
     192#define PATH_SEP ":"
     193#endif
    178194
    179195/* should this be public? */
     
    181197#define KEYTAB_DEFAULT_MODIFY "FILE:" SYSCONFDIR "/krb5.keytab"
    182198
     199
    183200#define MODULI_FILE SYSCONFDIR "/krb5.moduli"
    184201
     
    196213
    197214
    198 #define KRB5_BUFSIZ 1024
     215#define KRB5_BUFSIZ 2048
    199216
    200217typedef enum {
     
    217234#define KRB5_INIT_CREDS_CANONICALIZE            1
    218235#define KRB5_INIT_CREDS_NO_C_CANON_CHECK        2
     236#define KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK       4
    219237    struct {
    220238        krb5_gic_process_last_req func;
     
    235253    struct et_list *et_list;
    236254    struct krb5_log_facility *warn_dest;
    237     krb5_cc_ops *cc_ops;
     255    struct krb5_log_facility *debug_dest;
     256    const krb5_cc_ops **cc_ops;
    238257    int num_cc_ops;
    239258    const char *http_proxy;
     
    264283#define KRB5_CTX_F_CHECK_PAC                    2
    265284#define KRB5_CTX_F_HOMEDIR_ACCESS               4
     285#define KRB5_CTX_F_SOCKETS_INITIALIZED          8
     286#define KRB5_CTX_F_RD_REQ_IGNORE                16
    266287    struct send_to_kdc *send_to_kdc;
     288#ifdef PKINIT
     289    hx509_context hx509ctx;
     290#endif
    267291} krb5_context_data;
    268292
     293#ifndef KRB5_USE_PATH_TOKENS
    269294#define KRB5_DEFAULT_CCNAME_FILE "FILE:/tmp/krb5cc_%{uid}"
     295#else
     296#define KRB5_DEFAULT_CCNAME_FILE "FILE:%{TEMP}/krb5cc_%{uid}"
     297#endif
    270298#define KRB5_DEFAULT_CCNAME_API "API:"
    271 #define KRB5_DEFAULT_CCNAME_KCM "KCM:%{uid}"
     299#define KRB5_DEFAULT_CCNAME_KCM_KCM "KCM:%{uid}"
     300#define KRB5_DEFAULT_CCNAME_KCM_API "API:%{uid}"
    272301
    273302#define EXTRACT_TICKET_ALLOW_CNAME_MISMATCH             1
     
    275304#define EXTRACT_TICKET_MATCH_REALM                      4
    276305#define EXTRACT_TICKET_AS_REQ                           8
     306#define EXTRACT_TICKET_TIMESYNC                         16
    277307
    278308/*
     
    292322#endif
    293323
     324#ifndef KRB5_FORWARDABLE_DEFAULT
     325#define KRB5_FORWARDABLE_DEFAULT TRUE
     326#endif
     327
    294328#ifdef PKINIT
    295329
    296330struct krb5_pk_identity {
    297     hx509_context hx509ctx;
    298331    hx509_verify_ctx verify_ctx;
    299332    hx509_certs certs;
     
    302335    hx509_certs certpool;
    303336    hx509_revoke_ctx revokectx;
     337    int flags;
     338#define PKINIT_BTMM 1
    304339};
    305340
Note: See TracChangeset for help on using the changeset viewer.