~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/include/kerberosIV/krb.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 * Unfortuantely, they've leaked out everywhere else.
36
36
 */
37
37
#if defined(__MACH__) && defined(__APPLE__)
38
 
#       include <TargetConditionals.h>
39
 
#       if TARGET_RT_MAC_CFM
40
 
#               error "Use KfM 4.0 SDK headers for CFM compilation."
41
 
#       endif
42
 
#       ifndef KRB_PRIVATE
43
 
#               define KRB_PRIVATE 0
44
 
#       endif
 
38
#include <TargetConditionals.h>
 
39
#include <AvailabilityMacros.h>
 
40
#if TARGET_RT_MAC_CFM
 
41
#error "Use KfM 4.0 SDK headers for CFM compilation."
 
42
#endif
 
43
#ifndef KRB_PRIVATE
 
44
#define KRB_PRIVATE 0
 
45
#endif
 
46
#ifdef DEPRECATED_IN_MAC_OS_X_VERSION_10_5
 
47
#define KRB5INT_KRB4_DEPRECATED DEPRECATED_IN_MAC_OS_X_VERSION_10_5
 
48
#endif
45
49
#else
46
 
#       ifndef KRB_PRIVATE
47
 
#               define KRB_PRIVATE 1
48
 
#       endif
 
50
#ifndef KRB_PRIVATE
 
51
#define KRB_PRIVATE 1
 
52
#endif
 
53
#endif /* defined(__MACH__) && defined(__APPLE__) */
 
54
 
 
55
/* Macro to add deprecated attribute to KRB4 types and functions */
 
56
/* Currently only defined on Mac OS X 10.5 and later.            */
 
57
#ifndef KRB5INT_KRB4_DEPRECATED
 
58
#define KRB5INT_KRB4_DEPRECATED
49
59
#endif
50
60
 
51
61
/* Define u_char, u_short, u_int, and u_long. */
73
83
KRBINT_BEGIN_DECLS
74
84
 
75
85
#if TARGET_OS_MAC
76
 
#       pragma options align=mac68k
 
86
#       pragma pack(push,2)
77
87
#endif
78
88
 
79
89
#define KRB4_32         DES_INT32
84
94
 
85
95
#if TARGET_OS_MAC
86
96
/* ABI divergence on Mac for backwards compatibility. */
87
 
extern const char * const * const krb_err_txt;
 
97
extern const char * const * const krb_err_txt 
 
98
KRB5INT_KRB4_DEPRECATED;
88
99
#else
89
 
extern const char * const krb_err_txt[MAX_KRB_ERRORS];
 
100
extern const char * const krb_err_txt[MAX_KRB_ERRORS] 
 
101
KRB5INT_KRB4_DEPRECATED;
90
102
#endif
91
103
 
92
104
/* General definitions */
144
156
    int     length;             /* Length of the text */
145
157
    unsigned char dat[MAX_KTXT_LEN];    /* The data itself */
146
158
    unsigned long mbz;          /* zero to catch runaway strings */
147
 
};
 
159
} KRB5INT_KRB4_DEPRECATED;
148
160
 
149
 
typedef struct ktext *KTEXT;
150
 
typedef struct ktext KTEXT_ST;
 
161
typedef struct ktext *KTEXT KRB5INT_KRB4_DEPRECATED;
 
162
typedef struct ktext KTEXT_ST KRB5INT_KRB4_DEPRECATED;
151
163
 
152
164
 
153
165
/* Definitions for send_to_kdc */
185
197
    unsigned KRB4_32 time_sec;  /* Time ticket issued */
186
198
    unsigned KRB4_32 address;   /* Address in ticket */
187
199
    KTEXT_ST reply;             /* Auth reply (opt) */
188
 
};
 
200
} KRB5INT_KRB4_DEPRECATED;
189
201
 
190
 
typedef struct auth_dat AUTH_DAT;
 
202
typedef struct auth_dat AUTH_DAT KRB5INT_KRB4_DEPRECATED;
191
203
 
192
204
/* Structure definition for credentials returned by get_cred */
193
205
 
209
221
#ifdef _WIN32
210
222
    char    address[ADDR_SZ];   /* Address in ticket */
211
223
#endif
212
 
};
 
224
} KRB5INT_KRB4_DEPRECATED;
213
225
 
214
 
typedef struct credentials CREDENTIALS;
 
226
typedef struct credentials CREDENTIALS KRB5INT_KRB4_DEPRECATED;
215
227
 
216
228
/* Structure definition for rd_private_msg and rd_safe_msg */
217
229
 
222
234
    int     swap;                       /* swap bytes? */
223
235
    KRB4_32  time_sec;                  /* msg timestamp seconds */
224
236
    unsigned char time_5ms;             /* msg timestamp 5ms units */
225
 
};
 
237
} KRB5INT_KRB4_DEPRECATED;
226
238
 
227
 
typedef struct msg_dat MSG_DAT;
 
239
typedef struct msg_dat MSG_DAT KRB5INT_KRB4_DEPRECATED;
228
240
 
229
241
 
230
242
/* Location of ticket file for save_cred and get_cred */
420
432
 
421
433
typedef int (KRB5_CALLCONV *key_proc_type)
422
434
        (char *, char *, char *,
423
 
                    char *, C_Block);
 
435
                    char *, C_Block)
 
436
KRB5INT_KRB4_DEPRECATED;
 
437
 
424
438
#define KEY_PROC_TYPE_DEFINED
425
439
 
426
440
typedef int (KRB5_CALLCONV *decrypt_tkt_type)
427
441
        (char *, char *, char *,
428
 
                    char *, key_proc_type, KTEXT *);
 
442
                    char *, key_proc_type, KTEXT *)
 
443
KRB5INT_KRB4_DEPRECATED;
 
444
 
429
445
#define DECRYPT_TKT_TYPE_DEFINED
430
446
 
431
447
extern struct _krb5_context * krb5__krb4_context;
438
454
 
439
455
/* dest_tkt.c */
440
456
int KRB5_CALLCONV dest_tkt
441
 
        (void);
 
457
        (void)
 
458
KRB5INT_KRB4_DEPRECATED;
 
459
 
442
460
/* err_txt.c */
443
461
const char * KRB5_CALLCONV krb_get_err_text
444
 
        (int errnum);
 
462
        (int errnum)
 
463
KRB5INT_KRB4_DEPRECATED;
 
464
 
445
465
/* g_ad_tkt.c */
446
466
/* Previously not KRB5_CALLCONV */
447
467
int KRB5_CALLCONV get_ad_tkt
448
 
        (char *service, char *sinst, char *realm, int lifetime);
 
468
        (char *service, char *sinst, char *realm, int lifetime)
 
469
KRB5INT_KRB4_DEPRECATED;
 
470
 
449
471
/* g_admhst.c */
450
472
int KRB5_CALLCONV krb_get_admhst
451
 
        (char *host, char *realm, int idx);
 
473
        (char *host, char *realm, int idx)
 
474
KRB5INT_KRB4_DEPRECATED;
 
475
 
452
476
/* g_cred.c */
453
477
int KRB5_CALLCONV krb_get_cred
454
478
        (char *service, char *instance, char *realm,
455
 
                   CREDENTIALS *c);
 
479
                   CREDENTIALS *c)
 
480
KRB5INT_KRB4_DEPRECATED;
 
481
 
456
482
/* g_in_tkt.c */
457
483
/* Previously not KRB5_CALLCONV */
458
484
int KRB5_CALLCONV krb_get_in_tkt
459
485
        (char *k_user, char *instance, char *realm,
460
486
                   char *service, char *sinst, int life,
461
 
                   key_proc_type, decrypt_tkt_type, char *arg);
 
487
                   key_proc_type, decrypt_tkt_type, char *arg)
 
488
KRB5INT_KRB4_DEPRECATED;
 
489
 
462
490
#if KRB_PRIVATE
463
491
/* Previously not KRB5_CALLCONV */
464
492
int KRB5_CALLCONV krb_get_in_tkt_preauth
465
493
        (char *k_user, char *instance, char *realm,
466
494
                   char *service, char *sinst, int life,
467
495
                   key_proc_type, decrypt_tkt_type, char *arg,
468
 
                   char *preauth_p, int preauth_len);
 
496
                   char *preauth_p, int preauth_len)
 
497
KRB5INT_KRB4_DEPRECATED;
469
498
#endif
 
499
 
470
500
/* From KfM */
471
501
int KRB5_CALLCONV krb_get_in_tkt_creds(char *, char *, char *, char *, char *,
472
 
    int, key_proc_type, decrypt_tkt_type, char *, CREDENTIALS *);
 
502
    int, key_proc_type, decrypt_tkt_type, char *, CREDENTIALS *)
 
503
KRB5INT_KRB4_DEPRECATED;
 
504
 
473
505
 
474
506
/* g_krbhst.c */
475
507
int KRB5_CALLCONV krb_get_krbhst
476
 
        (char *host, const char *realm, int idx);
 
508
        (char *host, const char *realm, int idx)
 
509
KRB5INT_KRB4_DEPRECATED;
 
510
 
477
511
/* g_krbrlm.c */
478
512
int KRB5_CALLCONV krb_get_lrealm
479
 
        (char *realm, int idx);
 
513
        (char *realm, int idx)
 
514
KRB5INT_KRB4_DEPRECATED;
 
515
 
480
516
/* g_phost.c */
481
517
char * KRB5_CALLCONV krb_get_phost
482
 
        (char * alias);
 
518
        (char * alias)
 
519
KRB5INT_KRB4_DEPRECATED;
 
520
 
483
521
/* get_pw_tkt */
484
522
int KRB5_CALLCONV get_pw_tkt 
485
 
        (char *, char *, char *, char *);
 
523
        (char *, char *, char *, char *)
 
524
KRB5INT_KRB4_DEPRECATED;
 
525
 
486
526
/* g_pw_in_tkt.c */
487
527
int KRB5_CALLCONV krb_get_pw_in_tkt
488
528
        (char *k_user, char *instance, char *realm,
489
529
                   char *service, char *sinstance,
490
 
                   int life, char *password);
 
530
                   int life, char *password)
 
531
KRB5INT_KRB4_DEPRECATED;
 
532
 
491
533
#if KRB_PRIVATE
492
534
int KRB5_CALLCONV krb_get_pw_in_tkt_preauth
493
535
        (char *k_user, char *instance, char *realm,
494
536
                   char *service, char *sinstance,
495
 
                   int life, char *password);
 
537
                   int life, char *password)
 
538
KRB5INT_KRB4_DEPRECATED;
496
539
#endif
 
540
 
497
541
int KRB5_CALLCONV
498
542
krb_get_pw_in_tkt_creds(char *, char *, char *,
499
 
        char *, char *, int, char *, CREDENTIALS *);
 
543
        char *, char *, int, char *, CREDENTIALS *)
 
544
KRB5INT_KRB4_DEPRECATED;
500
545
 
501
546
/* g_svc_in_tkt.c */
502
547
int KRB5_CALLCONV krb_get_svc_in_tkt
503
548
        (char *k_user, char *instance, char *realm,
504
549
                   char *service, char *sinstance,
505
 
                   int life, char *srvtab);
 
550
                   int life, char *srvtab)
 
551
KRB5INT_KRB4_DEPRECATED;
506
552
 
507
553
/* g_tf_fname.c */
508
554
int KRB5_CALLCONV krb_get_tf_fullname
509
 
        (const char *ticket_file, char *name, char *inst, char *realm);
 
555
        (const char *ticket_file, char *name, char *inst, char *realm)
 
556
KRB5INT_KRB4_DEPRECATED;
 
557
 
510
558
/* g_tf_realm.c */
511
559
int KRB5_CALLCONV krb_get_tf_realm
512
 
        (const char *ticket_file, char *realm);
 
560
        (const char *ticket_file, char *realm)
 
561
KRB5INT_KRB4_DEPRECATED;
 
562
 
513
563
/* g_tkt_svc.c */
514
564
int KRB5_CALLCONV krb_get_ticket_for_service
515
565
        (char *serviceName,
516
566
                   char *buf, unsigned KRB4_32 *buflen,
517
567
                   int checksum, des_cblock, Key_schedule,
518
 
                   char *version, int includeVersion);
 
568
                   char *version, int includeVersion)
 
569
KRB5INT_KRB4_DEPRECATED;
 
570
 
519
571
#if KRB_PRIVATE
520
572
/* in_tkt.c */
521
573
int KRB5_CALLCONV in_tkt
522
 
        (char *name, char *inst);
 
574
        (char *name, char *inst)
 
575
KRB5INT_KRB4_DEPRECATED;
 
576
 
523
577
int KRB5_CALLCONV krb_in_tkt
524
 
        (char *pname, char *pinst, char *realm);
 
578
        (char *pname, char *pinst, char *realm)
 
579
KRB5INT_KRB4_DEPRECATED;
525
580
#endif
526
581
 
527
582
/* kname_parse.c */
528
583
int KRB5_CALLCONV kname_parse
529
584
        (char *name, char *inst, char *realm,
530
 
                   char *fullname);
 
585
                   char *fullname)
 
586
KRB5INT_KRB4_DEPRECATED;
 
587
 
531
588
/* Merged from KfM */
532
589
int KRB5_CALLCONV kname_unparse
533
 
        (char *, const char *, const char *, const char *);
 
590
        (char *, const char *, const char *, const char *)
 
591
KRB5INT_KRB4_DEPRECATED;
534
592
 
535
593
int KRB5_CALLCONV k_isname
536
 
        (char *);
 
594
        (char *)
 
595
KRB5INT_KRB4_DEPRECATED;
 
596
 
537
597
int KRB5_CALLCONV k_isinst
538
 
        (char *);
 
598
        (char *)
 
599
KRB5INT_KRB4_DEPRECATED;
 
600
 
539
601
int KRB5_CALLCONV k_isrealm
540
 
        (char *);
 
602
        (char *)
 
603
KRB5INT_KRB4_DEPRECATED;
541
604
 
542
605
 
543
606
/* kuserok.c */
544
607
int KRB5_CALLCONV kuserok
545
 
        (AUTH_DAT *kdata, char *luser);
 
608
        (AUTH_DAT *kdata, char *luser)
 
609
KRB5INT_KRB4_DEPRECATED;
546
610
 
547
611
/* lifetime.c */
548
612
KRB4_32 KRB5_CALLCONV krb_life_to_time
549
 
        (KRB4_32 start, int life);
 
613
        (KRB4_32 start, int life)
 
614
KRB5INT_KRB4_DEPRECATED;
 
615
 
550
616
int KRB5_CALLCONV krb_time_to_life
551
 
        (KRB4_32 start, KRB4_32 end);
 
617
        (KRB4_32 start, KRB4_32 end)
 
618
KRB5INT_KRB4_DEPRECATED;
552
619
 
553
620
/* mk_auth.c */
554
621
int KRB5_CALLCONV krb_check_auth
555
622
        (KTEXT, unsigned KRB4_32 cksum, MSG_DAT *,
556
623
                   C_Block, Key_schedule,
557
624
                   struct sockaddr_in * local_addr,
558
 
                   struct sockaddr_in * foreign_addr);
 
625
                   struct sockaddr_in * foreign_addr)
 
626
KRB5INT_KRB4_DEPRECATED;
 
627
 
559
628
int KRB5_CALLCONV krb_mk_auth
560
629
        (long k4_options, KTEXT ticket,
561
630
                   char *service, char *inst, char *realm,
562
 
                   unsigned KRB4_32 checksum, char *version, KTEXT buf);
 
631
                   unsigned KRB4_32 checksum, char *version, KTEXT buf)
 
632
KRB5INT_KRB4_DEPRECATED;
 
633
 
563
634
/* mk_err.c */
564
635
long KRB5_CALLCONV krb_mk_err
565
 
        (u_char *out, KRB4_32 k4_code, char *text);
 
636
        (u_char *out, KRB4_32 k4_code, char *text)
 
637
KRB5INT_KRB4_DEPRECATED;
 
638
 
566
639
#if KRB_PRIVATE
567
640
/* mk_preauth.c */
568
641
int krb_mk_preauth
569
642
        (char **preauth_p, int *preauth_len, key_proc_type,
570
643
                   char *name, char *inst, char *realm, char *password,
571
 
                   C_Block);
 
644
                   C_Block)
 
645
KRB5INT_KRB4_DEPRECATED;
 
646
 
572
647
void krb_free_preauth
573
 
        (char * preauth_p, int len);
 
648
        (char * preauth_p, int len)
 
649
KRB5INT_KRB4_DEPRECATED;
574
650
#endif
 
651
 
575
652
/* mk_priv.c */
576
653
long KRB5_CALLCONV krb_mk_priv
577
654
        (u_char *in, u_char *out,
578
655
                   unsigned KRB4_32 length,
579
656
                   Key_schedule, C_Block *,
580
657
                   struct sockaddr_in * sender,
581
 
                   struct sockaddr_in * receiver);
 
658
                   struct sockaddr_in * receiver)
 
659
KRB5INT_KRB4_DEPRECATED;
 
660
 
582
661
/* mk_req.c */
583
662
int KRB5_CALLCONV krb_mk_req
584
663
        (KTEXT authent,
585
664
                   char *service, char *instance, char *realm,
586
 
                   KRB4_32 checksum);
 
665
                   KRB4_32 checksum)
 
666
KRB5INT_KRB4_DEPRECATED;
 
667
 
587
668
/* Merged from KfM */
588
 
int KRB5_CALLCONV krb_mk_req_creds(KTEXT, CREDENTIALS *, KRB_INT32);
 
669
int KRB5_CALLCONV krb_mk_req_creds(KTEXT, CREDENTIALS *, KRB_INT32)
 
670
KRB5INT_KRB4_DEPRECATED;
589
671
 
590
672
/* Added CALLCONV (KfM exports w/o INTERFACE, but KfW doesn't export?) */
591
 
int KRB5_CALLCONV krb_set_lifetime(int newval);
 
673
int KRB5_CALLCONV krb_set_lifetime(int newval)
 
674
KRB5INT_KRB4_DEPRECATED;
592
675
 
593
676
/* mk_safe.c */
594
677
long KRB5_CALLCONV krb_mk_safe
595
678
        (u_char *in, u_char *out, unsigned KRB4_32 length,
596
679
                   C_Block *,
597
680
                   struct sockaddr_in *sender,
598
 
                   struct sockaddr_in *receiver);
 
681
                   struct sockaddr_in *receiver)
 
682
KRB5INT_KRB4_DEPRECATED;
 
683
 
599
684
#if KRB_PRIVATE
600
685
/* netread.c */
601
686
int krb_net_read
602
 
        (int fd, char *buf, int len);
 
687
        (int fd, char *buf, int len)
 
688
KRB5INT_KRB4_DEPRECATED;
 
689
 
603
690
/* netwrite.c */
604
691
int krb_net_write
605
 
        (int fd, char *buf, int len);
 
692
        (int fd, char *buf, int len)
 
693
KRB5INT_KRB4_DEPRECATED;
 
694
 
606
695
/* pkt_clen.c */
607
696
int pkt_clen
608
 
        (KTEXT);
 
697
        (KTEXT)
 
698
KRB5INT_KRB4_DEPRECATED;
609
699
#endif
610
700
 
611
701
/* put_svc_key.c */
612
702
int KRB5_CALLCONV put_svc_key
613
703
        (char *sfile,
614
704
                   char *name, char *inst, char *realm,
615
 
                   int newvno, char *key);
 
705
                   int newvno, char *key)
 
706
KRB5INT_KRB4_DEPRECATED;
616
707
 
617
708
/* rd_err.c */
618
709
int KRB5_CALLCONV krb_rd_err
619
710
        (u_char *in, u_long in_length,
620
 
                   long *k4_code, MSG_DAT *m_data);
 
711
                   long *k4_code, MSG_DAT *m_data)
 
712
KRB5INT_KRB4_DEPRECATED;
 
713
 
621
714
/* rd_priv.c */
622
715
long KRB5_CALLCONV krb_rd_priv
623
716
        (u_char *in,unsigned KRB4_32 in_length,
624
717
                   Key_schedule, C_Block *,
625
718
                   struct sockaddr_in *sender,
626
719
                   struct sockaddr_in *receiver,
627
 
                   MSG_DAT *m_data);
 
720
                   MSG_DAT *m_data)
 
721
KRB5INT_KRB4_DEPRECATED;
 
722
 
628
723
/* rd_req.c */
629
724
int KRB5_CALLCONV krb_rd_req
630
725
        (KTEXT, char *service, char *inst,
631
726
                   unsigned KRB4_32 from_addr, AUTH_DAT *,
632
 
                   char *srvtab);
 
727
                   char *srvtab)
 
728
KRB5INT_KRB4_DEPRECATED;
 
729
 
633
730
/* Merged from KfM */
634
731
int KRB5_CALLCONV
635
 
krb_rd_req_int(KTEXT, char *, char *, KRB_UINT32, AUTH_DAT *, C_Block);
 
732
krb_rd_req_int(KTEXT, char *, char *, KRB_UINT32, AUTH_DAT *, C_Block)
 
733
KRB5INT_KRB4_DEPRECATED;
636
734
 
637
735
/* rd_safe.c */
638
736
long KRB5_CALLCONV krb_rd_safe
640
738
                   C_Block *,
641
739
                   struct sockaddr_in *sender,
642
740
                   struct sockaddr_in *receiver,
643
 
                   MSG_DAT *m_data);
 
741
                   MSG_DAT *m_data)
 
742
KRB5INT_KRB4_DEPRECATED;
 
743
 
644
744
/* rd_svc_key.c */
645
745
int KRB5_CALLCONV read_service_key
646
746
        (char *service, char *instance, char *realm,
647
 
                   int kvno, char *file, char *key);
 
747
                   int kvno, char *file, char *key)
 
748
KRB5INT_KRB4_DEPRECATED;
 
749
 
648
750
int KRB5_CALLCONV get_service_key
649
751
        (char *service, char *instance, char *realm,
650
 
                   int *kvno, char *file, char *key);
 
752
                   int *kvno, char *file, char *key)
 
753
KRB5INT_KRB4_DEPRECATED;
651
754
 
652
755
/* realmofhost.c */
653
756
char * KRB5_CALLCONV krb_realmofhost
654
 
        (char *host);
 
757
        (char *host)
 
758
KRB5INT_KRB4_DEPRECATED;
 
759
 
655
760
/* recvauth.c */
656
761
int KRB5_CALLCONV krb_recvauth
657
762
        (long k4_options, int fd, KTEXT ticket,
659
764
                   struct sockaddr_in *foreign_addr,
660
765
                   struct sockaddr_in *local_addr,
661
766
                   AUTH_DAT *kdata, char *srvtab,
662
 
                   Key_schedule schedule, char *version);
 
767
                   Key_schedule schedule, char *version)
 
768
KRB5INT_KRB4_DEPRECATED;
 
769
 
663
770
/* sendauth.c */
664
771
int KRB5_CALLCONV krb_sendauth
665
772
        (long k4_options, int fd, KTEXT ticket,
667
774
         unsigned KRB4_32 checksum, MSG_DAT *msg_data,
668
775
         CREDENTIALS *cred, Key_schedule schedule, 
669
776
         struct sockaddr_in *laddr, struct sockaddr_in *faddr, 
670
 
         char *version);
 
777
         char *version)
 
778
KRB5INT_KRB4_DEPRECATED;
671
779
 
672
780
#if KRB_PRIVATE
673
781
/* save_creds.c */
674
782
int KRB5_CALLCONV krb_save_credentials
675
783
        (char *service, char *instance, char *realm,
676
784
                   C_Block session, int lifetime, int kvno,
677
 
                   KTEXT ticket, long issue_date);
 
785
                   KTEXT ticket, long issue_date)
 
786
KRB5INT_KRB4_DEPRECATED;
 
787
 
678
788
/* send_to_kdc.c */
679
789
/* XXX PRIVATE? KfM doesn't export. */
680
790
int send_to_kdc
681
 
        (KTEXT pkt, KTEXT rpkt, char *realm);
 
791
        (KTEXT pkt, KTEXT rpkt, char *realm)
 
792
KRB5INT_KRB4_DEPRECATED;
682
793
#endif
683
794
 
684
795
/* tkt_string.c */
685
796
/* Used to return pointer to non-const char */
686
797
const char * KRB5_CALLCONV tkt_string
687
 
        (void);
 
798
        (void)
 
799
KRB5INT_KRB4_DEPRECATED;
 
800
 
688
801
/* Previously not KRB5_CALLCONV, and previously took pointer to non-const. */
689
802
void KRB5_CALLCONV krb_set_tkt_string
690
 
        (const char *);
 
803
        (const char *)
 
804
KRB5INT_KRB4_DEPRECATED;
691
805
 
692
806
#if KRB_PRIVATE
693
807
/* tf_util.c */
694
 
int KRB5_CALLCONV tf_init (const char *tf_name, int rw);
695
 
 
696
 
int KRB5_CALLCONV tf_get_pname (char *p);
697
 
 
698
 
int KRB5_CALLCONV tf_get_pinst (char *p);
699
 
 
700
 
int KRB5_CALLCONV tf_get_cred (CREDENTIALS *c);
701
 
 
702
 
void KRB5_CALLCONV tf_close (void);
 
808
int KRB5_CALLCONV tf_init (const char *tf_name, int rw)
 
809
KRB5INT_KRB4_DEPRECATED;
 
810
 
 
811
int KRB5_CALLCONV tf_get_pname (char *p)
 
812
KRB5INT_KRB4_DEPRECATED;
 
813
 
 
814
int KRB5_CALLCONV tf_get_pinst (char *p)
 
815
KRB5INT_KRB4_DEPRECATED;
 
816
 
 
817
int KRB5_CALLCONV tf_get_cred (CREDENTIALS *c)
 
818
KRB5INT_KRB4_DEPRECATED;
 
819
 
 
820
void KRB5_CALLCONV tf_close (void)
 
821
KRB5INT_KRB4_DEPRECATED;
703
822
#endif
704
823
 
705
824
#if KRB_PRIVATE
706
825
/* unix_time.c */
707
826
unsigned KRB4_32 KRB5_CALLCONV unix_time_gmt_unixsec 
708
 
        (unsigned KRB4_32 *);
 
827
        (unsigned KRB4_32 *)
 
828
KRB5INT_KRB4_DEPRECATED;
709
829
 
710
830
/*
711
831
 * Internal prototypes
712
832
 */
713
833
extern int krb_set_key
714
 
        (char *key, int cvt);
 
834
        (char *key, int cvt)
 
835
KRB5INT_KRB4_DEPRECATED;
715
836
 
716
837
/* This is exported by KfM.  It was previously not KRB5_CALLCONV. */
717
838
extern int KRB5_CALLCONV decomp_ticket
719
840
                   char *pinstance, char *prealm, unsigned KRB4_32 *paddress,
720
841
                   C_Block session, int *life, unsigned KRB4_32 *time_sec,
721
842
                   char *sname, char *sinstance, C_Block,
722
 
                   Key_schedule key_s);
 
843
                   Key_schedule key_s)
 
844
KRB5INT_KRB4_DEPRECATED;
723
845
 
724
846
 
725
847
extern void cr_err_reply(KTEXT pkt, char *pname, char *pinst, char *prealm,
726
 
                         u_long time_ws, u_long e, char *e_string);
 
848
                         u_long time_ws, u_long e, char *e_string)
 
849
KRB5INT_KRB4_DEPRECATED;
727
850
 
728
851
extern int create_ciph(KTEXT c, C_Block session, char *service, 
729
852
                       char *instance, char *realm, unsigned long life,
730
853
                       int kvno, KTEXT tkt, unsigned long kdc_time, 
731
 
                       C_Block key);
 
854
                       C_Block key)
 
855
KRB5INT_KRB4_DEPRECATED;
732
856
 
733
857
 
734
858
extern int krb_create_ticket(KTEXT tkt, unsigned int flags, char *pname,
735
859
                             char *pinstance, char *prealm, long paddress,
736
860
                             char *session, int life, long time_sec, 
737
 
                             char *sname, char *sinstance, C_Block key);
 
861
                             char *sname, char *sinstance, C_Block key)
 
862
KRB5INT_KRB4_DEPRECATED;
738
863
 
739
864
#endif /* KRB_PRIVATE */
740
865
 
741
866
/* This function is used by KEYFILE above.  Do not call it directly */
742
 
extern char * krb__get_srvtabname(const char *);
 
867
extern char * krb__get_srvtabname(const char *)
 
868
KRB5INT_KRB4_DEPRECATED;
743
869
 
744
870
#if KRB_PRIVATE
745
871
 
746
 
extern int krb_kntoln(AUTH_DAT *, char *);
 
872
extern int krb_kntoln(AUTH_DAT *, char *)
 
873
KRB5INT_KRB4_DEPRECATED;
747
874
 
748
875
#ifdef KRB5_GENERAL__
749
876
extern int krb_cr_tkt_krb5(KTEXT tkt, unsigned int flags, char *pname,
750
877
                           char *pinstance, char *prealm, long paddress,
751
878
                           char *session, int life, long time_sec, 
752
879
                           char *sname, char *sinstance,  
753
 
                           krb5_keyblock *k5key);
 
880
                           krb5_keyblock *k5key)
 
881
KRB5INT_KRB4_DEPRECATED;
754
882
 
755
 
extern int krb_set_key_krb5(krb5_context ctx, krb5_keyblock *key);
 
883
extern int krb_set_key_krb5(krb5_context ctx, krb5_keyblock *key)
 
884
KRB5INT_KRB4_DEPRECATED;
756
885
 
757
886
#endif
758
887
 
762
891
 * krb_change_password -- merged from KfM
763
892
 */
764
893
/* change_password.c */
765
 
int KRB5_CALLCONV krb_change_password(char *, char *, char *, char *, char *);
 
894
int KRB5_CALLCONV krb_change_password(char *, char *, char *, char *, char *)
 
895
KRB5INT_KRB4_DEPRECATED;
766
896
 
767
897
/*
768
898
 * RealmsConfig-glue.c -- merged from KfM
769
899
 */
770
 
int KRB5_CALLCONV krb_get_profile(profile_t *);
 
900
int KRB5_CALLCONV krb_get_profile(profile_t *)
 
901
KRB5INT_KRB4_DEPRECATED;
771
902
 
772
903
#ifdef _WIN32
773
 
HINSTANCE get_lib_instance(void);
774
 
unsigned int krb_get_notification_message(void);
775
 
char * KRB5_CALLCONV krb_get_default_user(void);
776
 
int KRB5_CALLCONV krb_set_default_user(char *);
777
 
unsigned KRB4_32 win_time_gmt_unixsec(unsigned KRB4_32 *);
778
 
long win_time_get_epoch(void);
 
904
HINSTANCE get_lib_instance(void)
 
905
KRB5INT_KRB4_DEPRECATED;
 
906
unsigned int krb_get_notification_message(void)
 
907
KRB5INT_KRB4_DEPRECATED;
 
908
char * KRB5_CALLCONV krb_get_default_user(void)
 
909
KRB5INT_KRB4_DEPRECATED;
 
910
int KRB5_CALLCONV krb_set_default_user(char *)
 
911
KRB5INT_KRB4_DEPRECATED;
 
912
unsigned KRB4_32 win_time_gmt_unixsec(unsigned KRB4_32 *)
 
913
KRB5INT_KRB4_DEPRECATED;
 
914
long win_time_get_epoch(void)
 
915
KRB5INT_KRB4_DEPRECATED;
779
916
#endif
780
917
 
781
918
#if TARGET_OS_MAC
782
 
#       pragma options align=reset
 
919
#       pragma pack(pop)
783
920
#endif
784
921
 
785
922
KRBINT_END_DECLS