/crypto/heimdal/lib/ntlm/heimntlm-protos.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 194 lines · 160 code · 33 blank · 1 comment · 0 complexity · f349ef9628d226ae3267431a4771d65c MD5 · raw file

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