[Dovecot] [PATCH, RFC 5/13] OTP: add lib-otp to build process

Andrey Panin pazke at donpac.ru
Mon Jun 26 15:58:05 EEST 2006


Finally add lib-otp to the build process.

diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/configure.in dovecot/configure.in
--- dovecot.vanilla/configure.in	2006-06-23 13:42:22.158502608 +0400
+++ dovecot/configure.in	2006-06-23 13:44:31.276873632 +0400
@@ -1742,6 +1742,7 @@ src/lib-imap/Makefile
 src/lib-index/Makefile
 src/lib-mail/Makefile
 src/lib-ntlm/Makefile
+src/lib-otp/Makefile
 src/lib-settings/Makefile
 src/lib-storage/Makefile
 src/lib-storage/index/Makefile
diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/lib-otp/Makefile.am dovecot/src/lib-otp/Makefile.am
--- dovecot.vanilla/src/lib-otp/Makefile.am	1970-01-01 03:00:00.000000000 +0300
+++ dovecot/src/lib-otp/Makefile.am	2006-06-23 13:44:31.276873632 +0400
@@ -0,0 +1,16 @@
+noinst_LIBRARIES = libotp.a
+
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/src/lib
+
+libotp_a_SOURCES = \
+	otp-dictionary.c \
+	otp-hash.c \
+	otp-parity.c \
+	otp-parse.c
+
+noinst_HEADERS = \
+	otp-dictionary.h \
+	otp-hash.h \
+	otp-parity.h \
+	otp-parse.h
diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/lib-otp/otp.h dovecot/src/lib-otp/otp.h
--- dovecot.vanilla/src/lib-otp/otp.h	1970-01-01 03:00:00.000000000 +0300
+++ dovecot/src/lib-otp/otp.h	2006-06-23 13:44:31.277873480 +0400
@@ -0,0 +1,22 @@
+#ifndef __OTP_H__
+#define __OTP_H__
+
+#define OTP_MAX_SEED_LEN	16
+#define OTP_MAX_WORD_LEN	4
+#define OTP_WORDS_NUMBER	6
+
+#define OTP_HASH_SIZE		8
+
+struct otp_state {
+	int algo;
+	int seq;
+	unsigned char hash[OTP_HASH_SIZE];
+	char seed[OTP_MAX_SEED_LEN + 1];
+};
+
+#include "otp-hash.h"
+#include "otp-dictionary.h"
+#include "otp-parity.h"
+#include "otp-parse.h"
+
+#endif	/* __OTP_H__ */
diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/Makefile.am dovecot/src/Makefile.am
--- dovecot.vanilla/src/Makefile.am	2006-06-23 13:42:22.126507472 +0400
+++ dovecot/src/Makefile.am	2006-06-23 13:44:31.277873480 +0400
@@ -11,6 +11,7 @@ SUBDIRS = \
 	lib-dict \
 	lib-sql \
 	lib-ntlm \
+	lib-otp \
 	lib-settings \
 	lib-charset \
 	lib-mail \



More information about the dovecot mailing list