view src/lib-ntlm/ntlm.h @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <>
date Sun, 05 Nov 2017 23:51:56 +0200
parents 8ebc07d2eee9
line wrap: on
line source

#ifndef NTLM_H
#define NTLM_H

#include <stddef.h>

#include "ntlm-types.h"
#include "ntlm-flags.h"
#include "ntlm-byteorder.h"
#include "ntlm-encrypt.h"
#include "ntlm-message.h"

#define ntlmssp_buffer_data(message, buffer) \
	ntlmssp_buffer_data_i((message), &message->buffer)

static inline const void *
ntlmssp_buffer_data_i(void *message, struct ntlmssp_buffer *buffer)
	return ((char *) message) + read_le32(&buffer->offset);

#define ntlmssp_buffer_length(message, buffer) \

static inline unsigned int
ntlmssp_buffer_length_i(struct ntlmssp_buffer *buffer)
	return read_le16(&buffer->length);

#define ntlmssp_t_str(message, buffer, unicode) \
	ntlmssp_t_str_i((message), &(message)->buffer, (unicode))

const char *ntlmssp_t_str_i(const void *message, struct ntlmssp_buffer *buffer,
			    bool unicode);