1 /* This is a generated file */ 2 #ifndef __heimntlm_protos_h__ 3 #define __heimntlm_protos_h__ 4 5 #include <stdarg.h> 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 int 12 heim_ntlm_build_ntlm1_master ( 13 void */*key*/, 14 size_t /*len*/, 15 struct ntlm_buf */*session*/, 16 struct ntlm_buf */*master*/); 17 18 int 19 heim_ntlm_calculate_ntlm1 ( 20 void */*key*/, 21 size_t /*len*/, 22 unsigned char challange[8], 23 struct ntlm_buf */*answer*/); 24 25 int 26 heim_ntlm_calculate_ntlm2 ( 27 const void */*key*/, 28 size_t /*len*/, 29 const char */*username*/, 30 const char */*target*/, 31 const unsigned char serverchallange[8], 32 const struct ntlm_buf */*infotarget*/, 33 unsigned char ntlmv2[16], 34 struct ntlm_buf */*answer*/); 35 36 int 37 heim_ntlm_calculate_ntlm2_sess ( 38 const unsigned char clnt_nonce[8], 39 const unsigned char svr_chal[8], 40 const unsigned char ntlm_hash[16], 41 struct ntlm_buf */*lm*/, 42 struct ntlm_buf */*ntlm*/); 43 44 int 45 heim_ntlm_decode_targetinfo ( 46 const struct ntlm_buf */*data*/, 47 int /*ucs2*/, 48 struct ntlm_targetinfo */*ti*/); 49 50 int 51 heim_ntlm_decode_type1 ( 52 const struct ntlm_buf */*buf*/, 53 struct ntlm_type1 */*data*/); 54 55 int 56 heim_ntlm_decode_type2 ( 57 const struct ntlm_buf */*buf*/, 58 struct ntlm_type2 */*type2*/); 59 60 int 61 heim_ntlm_decode_type3 ( 62 const struct ntlm_buf */*buf*/, 63 int /*ucs2*/, 64 struct ntlm_type3 */*type3*/); 65 66 int 67 heim_ntlm_encode_targetinfo ( 68 const struct ntlm_targetinfo */*ti*/, 69 int /*ucs2*/, 70 struct ntlm_buf */*data*/); 71 72 int 73 heim_ntlm_encode_type1 ( 74 const struct ntlm_type1 */*type1*/, 75 struct ntlm_buf */*data*/); 76 77 int 78 heim_ntlm_encode_type2 ( 79 const struct ntlm_type2 */*type2*/, 80 struct ntlm_buf */*data*/); 81 82 int 83 heim_ntlm_encode_type3 ( 84 const struct ntlm_type3 */*type3*/, 85 struct ntlm_buf */*data*/); 86 87 void 88 heim_ntlm_free_buf (struct ntlm_buf */*p*/); 89 90 void 91 heim_ntlm_free_targetinfo (struct ntlm_targetinfo */*ti*/); 92 93 void 94 heim_ntlm_free_type1 (struct ntlm_type1 */*data*/); 95 96 void 97 heim_ntlm_free_type2 (struct ntlm_type2 */*data*/); 98 99 void 100 heim_ntlm_free_type3 (struct ntlm_type3 */*data*/); 101 102 int 103 heim_ntlm_nt_key ( 104 const char */*password*/, 105 struct ntlm_buf */*key*/); 106 107 void 108 heim_ntlm_ntlmv2_key ( 109 const void */*key*/, 110 size_t /*len*/, 111 const char */*username*/, 112 const char */*target*/, 113 unsigned char ntlmv2[16]); 114 115 int 116 heim_ntlm_verify_ntlm2 ( 117 const void */*key*/, 118 size_t /*len*/, 119 const char */*username*/, 120 const char */*target*/, 121 time_t /*now*/, 122 const unsigned char serverchallange[8], 123 const struct ntlm_buf */*answer*/, 124 struct ntlm_buf */*infotarget*/, 125 unsigned char ntlmv2[16]); 126 127 #ifdef __cplusplus 128 } 129 #endif 130 131 #endif /* __heimntlm_protos_h__ */ 132