+Mon Jul 16 22:55:26 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed various compilation problems under WIN32. Affected
+ files lib/silcutil/win32/silcwin32thread.c and
+ lib/silcutil/win32/silcwin32schedule.c.
+
+ * Removed all _internal.h #includes from public header
+ files. Internal headers must never be included from
+ public headers.
+
+ Removed also the lib/silcske/payload_internal.h file.
+
+ * All include files that may be needed (public and some others
+ included by the public headers) by application developers are
+ now copied to the ./includes directory. It does not copy any
+ internal headers. Affected file Makefile.defines.pre and all
+ Makefile.am's under lib/ and subdirs.
+
Thu Jul 12 17:49:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
* Do not change the ~/.silc directory's permissions automatically.
-I$(silc_top_srcdir)/lib/trq
includes-install: Makefile
- for i in $(include_HEADERS); \
- do \
- s=$(srcdir)/$$i; \
- d=$(silc_top_srcdir)/includes/$$i; \
- ln $$s $$d 2>/dev/null || cp -fp $$s $$d; \
+ for i in $(include_HEADERS); do s=$(srcdir)/$$i; d=$(silc_top_srcdir)/includes/$$i; \
+ ln $$s $$d 2>/dev/null || (rm -f $$d; cp -p $$s $$d;); \
done;
all-local: includes-install
all:
-cd ..
-EXTRA_DIST = *.h
\ No newline at end of file
+include_HEADERS = \
+ bitmove.h \
+ clientlibincludes.h \
+ silcdefs.h \
+ silcincludes.h \
+ silcwin32.h \
+ version.h \
+ version_internal.h
+
idlist.c \
protocol.c
+include_HEADERS= \
+ client.h \
+ command.h \
+ command_reply.h \
+ idlist.h \
+ protocol.h \
+ silcapi.h
+
EXTRA_DIST = *.h
-include $(top_srcdir)/Makefile.defines.in
\ No newline at end of file
+include $(top_srcdir)/Makefile.defines.in
silcauth.c \
silcprivate.c
+include_HEADERS = \
+ silcauth.h \
+ silcchannel.h \
+ silccommand.h \
+ silcidcache.h \
+ silcid.h \
+ silcmode.h \
+ silcnotify.h \
+ silcpacket.h \
+ silcpayload.h \
+ silcprivate.h \
+ silcprotocol.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in
silcpkcs.c \
pkcs1.c
+include_HEADERS = \
+ aes.h \
+ blowfish.h \
+ cast.h \
+ ciphers_def.h \
+ ciphers.h \
+ mars.h \
+ md5.h \
+ none.h \
+ pkcs1.h \
+ rc5.h \
+ rc6.h \
+ rsa.h \
+ sha1.h \
+ silccipher.h \
+ silcdh.h \
+ silchash.h \
+ silchmac.h \
+ silcpkcs.h \
+ silcrng.h \
+ twofish.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in
*/
#include "silcincludes.h"
+#include "rijndael_internal.h"
#include "aes.h"
/*
#ifndef RIJNDAEL_H
#define RIJNDAEL_H
-#include "rijndael_internal.h"
-
/*
* SILC Crypto API for Rijndael
*/
*/
#include "silcincludes.h"
+#include "blowfish_internal.h"
#include "blowfish.h"
/*
#ifndef BLOWFISH_H
#define BLOWFISH_H
-#include "blowfish_internal.h"
-
/*
* SILC Crypto API for Blowfish
*/
*/
#include "silcincludes.h"
+#include "cast_internal.h"
#include "cast.h"
#define io_swap
#ifndef CAST_H
#define CAST_H
-#include "cast_internal.h"
-
/*
* SILC Crypto API for Cast-256
*/
*/
#include "silcincludes.h"
+#include "mars_internal.h"
#include "mars.h"
/*
GNU General Public License for more details.
*/
-/*
- * $Id$
- * $Log$
- * Revision 1.1 2000/06/27 11:36:54 priikone
- * Initial revision
- *
- *
- */
#ifndef MARS_H
#define MARS_H
-#include "mars_internal.h"
-
/*
* SILC Crypto API for MARS
*/
*/
#include "silcincludes.h"
+#include "md5_internal.h"
#include "md5.h"
/*
GNU General Public License for more details.
*/
-/*
- * $Id$
- * $Log$
- * Revision 1.1 2000/06/27 11:36:55 priikone
- * Initial revision
- *
- *
- */
#ifndef MD5_H
#define MD5_H
-#include "md5_internal.h"
-
/*
* SILC Hash API for MD5
*/
*/
#include "silcincludes.h"
+#include "rsa_internal.h"
#include "rsa.h"
#define RSA_BLOCK_MIN_PAD_LEN 8
*/
#include "silcincludes.h"
+#include "rc5_internal.h"
#include "rc5.h"
/*
#ifndef RC5_H
#define RC5_H
-#include "rc5_internal.h"
-
/*
* SILC Crypto API for RC5
*/
*/
#include "silcincludes.h"
+#include "rc6_internal.h"
#include "rc6.h"
/*
GNU General Public License for more details.
*/
-/*
- * $Id$
- * $Log$
- * Revision 1.1 2000/06/27 11:36:54 priikone
- * Initial revision
- *
- *
- */
#ifndef RC6_H
#define RC6_H
-#include "rc6_internal.h"
-
/*
* SILC Crypto API for RC6
*/
*/
#include "silcincludes.h"
+#include "rsa_internal.h"
#include "rsa.h"
/*
#ifndef RSA_H
#define RSA_H
-#include "rsa_internal.h"
-
/*
* SILC PKCS API for RSA
*/
*/
#include "silcincludes.h"
+#include "sha1_internal.h"
#include "sha1.h"
/*
GNU General Public License for more details.
*/
-/*
- * $Id$
- * $Log$
- * Revision 1.1 2000/06/27 11:36:55 priikone
- * Initial revision
- *
- *
- */
#ifndef SHA1_H
#define SHA1_H
-#include "sha1_internal.h"
-
/*
* SILC Hash API for SHA1
*/
*/
#include "silcincludes.h"
+#include "twofish_internal.h"
#include "twofish.h"
/*
GNU General Public License for more details.
*/
-/*
- * $Id$
- * $Log$
- * Revision 1.1 2000/06/27 11:36:55 priikone
- * Initial revision
- *
- *
- */
#ifndef TWOFISH_H
#define TWOFISH_H
-#include "twofish_internal.h"
-
/*
* SILC Crypto API for Twofish
*/
mpbin.c \
$(MP_SOURCE)
+include_HEADERS = \
+ mp_gmp.h \
+ mp_mpi.h \
+ silcmath.h \
+ silcmp.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in
CLEANFILES = $(SIM_MODULES_DIR)/*.sim.so
+include_HEADERS = silcsim.h silcsimutil.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in
payload.c \
groups.c
+include_HEADERS = \
+ groups.h \
+ payload.h \
+ silcske.h \
+ silcske_status.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in
#define GROUPS_H
#include "silcske_status.h"
-#include "groups_internal.h"
/* Forward declaration */
typedef struct SilcSKEDiffieHellmanGroupStruct *SilcSKEDiffieHellmanGroup;
/* $Id$ */
#include "silcincludes.h"
-#include "payload_internal.h"
/* Encodes Key Exchange Start Payload into a SILC Buffer to be sent
to the other end. */
#define PAYLOAD_H
#include "silcske_status.h"
-#include "payload_internal.h"
+
+/* Forward declarations */
+typedef struct SilcSKEStartPayloadStruct SilcSKEStartPayload;
+typedef struct SilcSKEKEPayloadStruct SilcSKEKEPayload;
+
+/* SILC Key Exchange Start Payload */
+struct SilcSKEStartPayloadStruct {
+ unsigned char flags;
+ uint16 len;
+
+ unsigned char *cookie;
+ uint16 cookie_len;
+
+ unsigned char *version;
+ uint16 version_len;
+
+ uint16 ke_grp_len;
+ unsigned char *ke_grp_list;
+
+ uint16 pkcs_alg_len;
+ unsigned char *pkcs_alg_list;
+
+ uint16 enc_alg_len;
+ unsigned char *enc_alg_list;
+
+ uint16 hash_alg_len;
+ unsigned char *hash_alg_list;
+
+ uint16 hmac_alg_len;
+ unsigned char *hmac_alg_list;
+
+ uint16 comp_alg_len;
+ unsigned char *comp_alg_list;
+};
+
+/* SILC Key Exchange Payload */
+struct SilcSKEKEPayloadStruct {
+ uint16 pk_len;
+ unsigned char *pk_data;
+ uint16 pk_type;
+
+ SilcMPInt x;
+
+ uint16 sign_len;
+ unsigned char *sign_data;
+};
/* Prototypes */
SilcSKEStatus silc_ske_payload_start_encode(SilcSKE ske,
+++ /dev/null
-/*
-
- payload_internal.h
-
- Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
-
- Copyright (C) 2000 - 2001 Pekka Riikonen
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
-*/
-
-#ifndef PAYLOAD_INTERNAL_H
-#define PAYLOAD_INTERNAL_H
-
-/* SILC Key Exchange Start Payload */
-typedef struct {
- unsigned char flags;
- uint16 len;
-
- unsigned char *cookie;
- uint16 cookie_len;
-
- unsigned char *version;
- uint16 version_len;
-
- uint16 ke_grp_len;
- unsigned char *ke_grp_list;
-
- uint16 pkcs_alg_len;
- unsigned char *pkcs_alg_list;
-
- uint16 enc_alg_len;
- unsigned char *enc_alg_list;
-
- uint16 hash_alg_len;
- unsigned char *hash_alg_list;
-
- uint16 hmac_alg_len;
- unsigned char *hmac_alg_list;
-
- uint16 comp_alg_len;
- unsigned char *comp_alg_list;
-} SilcSKEStartPayload;
-
-/* SILC Key Exchange Payload */
-typedef struct {
- uint16 pk_len;
- unsigned char *pk_data;
- uint16 pk_type;
-
- SilcMPInt x;
-
- uint16 sign_len;
- unsigned char *sign_data;
-} SilcSKEKEPayload;
-
-#endif
/* $Id$ */
#include "silcincludes.h"
-#include "payload_internal.h"
+#include "silcske.h"
#include "groups_internal.h"
/* Structure to hold all SKE callbacks-> */
silchashtable.c \
silcsockconn.c
+include_HEADERS = \
+ silcbuffer.h \
+ silcbuffmt.h \
+ silcbufutil.h \
+ silcconfig.h \
+ silchashtable.h \
+ silclog.h \
+ silcmemory.h \
+ silcmutex.h \
+ silcnet.h \
+ silcschedule.h \
+ silcsockconn.h \
+ silctask.h \
+ silcthread.h \
+ silcutil.h
+
EXTRA_DIST = *.h
include $(top_srcdir)/Makefile.defines.in