summaryrefslogtreecommitdiffstats
path: root/src/ntlm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ntlm.h')
-rw-r--r--src/ntlm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ntlm.h b/src/ntlm.h
index 40508e4..72d62c8 100644
--- a/src/ntlm.h
+++ b/src/ntlm.h
@@ -430,6 +430,26 @@ int ntlm_mic(struct ntlm_key *exported_session_key,
struct ntlm_buffer *authenticate_message,
struct ntlm_buffer *mic);
+/**
+ * @brief Verifies a MIC
+ *
+ * @param key The keys used to generate the original MIC
+ * @param negotiate_message The NTLM Negotiate Message (or empty)
+ * @param challenge_message The NTLM Challenge Message
+ * @param authenticate_message The NTLM Authenticate Message
+ * @param mic The original MIC
+ *
+ * NOTE: This function zeros the area of memory where the MIC is held in the
+ * Authenticate Message
+ *
+ * @return 0 on success, EACCES if the MIC fails to verify, or an error
+ */
+int ntlm_verify_mic(struct ntlm_key *key,
+ struct ntlm_buffer *negotiate_message,
+ struct ntlm_buffer *challenge_message,
+ struct ntlm_buffer *authenticate_message,
+ struct ntlm_buffer *mic);
+
/* ############## ENCODING / DECODING ############## */
/**