From be10e71673bc538573b1805ee2115f2a3a7281a2 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 14 Mar 2008 13:41:32 +0200 Subject: [PATCH] Created SILC GIT repository. The SILC GIT repository is imported from the old SILC CVS tree and contains the entire SILC development history, all branches and tags. --- .cvsignore | 26 - CHANGES.CRYPTO | 111 - CHANGES.RUNTIME | 365 - README.CVS => README.GIT | 0 TODO | 362 - TODO-SILC | 26 +- apps/asn1utils/Makefile.am | 25 - apps/asn1utils/asn1dump.c | 309 - apps/asn1utils/configure.ad | 24 - apps/autodist/AUTHORS | 3 - apps/autodist/CHANGES | 141 - apps/autodist/COPYING | 25 - apps/autodist/INSTALL | 236 - apps/autodist/Makefile.am | 49 - apps/autodist/README | 49 - apps/autodist/TODO | 8 - apps/autodist/autodist.conf | 49 - apps/autodist/autodist.in | 2066 --- apps/autodist/autodist.spec.in | 54 - apps/autodist/configure.ad | 53 - apps/autodist/default | 10 - apps/autodist/doc/Makefile.am | 22 - apps/autodist/doc/autodist.1.in | 103 - apps/autodist/doc/autodist.texi | 1812 --- apps/autodist/doc/fdl.texi | 452 - apps/autodist/doc/mdate-sh | 133 - apps/autodist/doc/texinfo.tex | 6740 ---------- apps/autodist/makedist.in | 35 - apps/autodist/tests/Makefile.am | 32 - apps/autodist/tests/autodist1.test | 83 - apps/autodist/tests/autodist2.test | 90 - apps/autodist/tests/autodist3.test | 103 - apps/autodist/tests/autodist4.test | 103 - apps/autodist/tests/autodist5.test | 104 - apps/autodist/tests/autodist6.test | 68 - apps/autodist/tests/autodist7.test | 69 - apps/irssi/.cvsignore | 38 - apps/irssi/docs/.cvsignore | 3 - apps/irssi/docs/help/in/.cvsignore | 3 - apps/irssi/scripts/.cvsignore | 2 - apps/irssi/src/.cvsignore | 2 - apps/irssi/src/core/.cvsignore | 8 - apps/irssi/src/fe-common/core/.cvsignore | 8 - apps/irssi/src/fe-text/.cvsignore | 9 - apps/irssi/src/lib-config/.cvsignore | 7 - apps/irssi/src/lib-popt/.cvsignore | 7 - apps/irssi/src/perl/.cvsignore | 10 - apps/irssi/src/perl/common/.cvsignore | 7 - apps/irssi/src/perl/textui/.cvsignore | 7 - apps/irssi/src/perl/ui/.cvsignore | 7 - apps/irssi/src/silc/core/silc-queries.c | 22 +- apps/silcd/.cvsignore | 3 - configure.ad | 1494 +-- distdir/autodist | 24 - distdir/autodist-post-process-dist | 23 - distdir/common | 18 - distdir/default | 3 - doc/.cvsignore | 5 - includes/.cvsignore | 2 - includes/silc.h.in | 354 +- includes/silccompile.h | 131 + includes/silcversion.h.in | 4 +- lib/.cvsignore | 3 - lib/Makefile.ad | 23 - lib/contrib/.cvsignore | 2 - lib/contrib/Makefile.ad | 28 - lib/contrib/gunicomp.h | 661 - lib/contrib/gunidecomp.h | 10363 ---------------- lib/contrib/nfkc.c | 1054 -- lib/contrib/rfc3454.c | 3544 ------ lib/contrib/stringprep.c | 675 - lib/contrib/stringprep.h | 181 - lib/silcacc/DIRECTORY | 19 - lib/silcacc/Makefile.ad | 30 - lib/silcacc/silcacc.c | 174 - lib/silcacc/silcacc.h | 252 - lib/silcacc/silcacc_pkcs.c | 471 - lib/silcacc/softacc.c | 540 - lib/silcacc/softacc.h | 37 - lib/silcacc/tests/Makefile.am | 27 - lib/silcacc/tests/test_softacc.c | 95 - lib/silcapputil/Makefile.ad | 4 - lib/silcasn1/DIRECTORY | 22 - lib/silcasn1/Makefile.ad | 39 - lib/silcasn1/silcasn1.c | 220 - lib/silcasn1/silcasn1.h | 1220 -- lib/silcasn1/silcasn1_decode.c | 966 -- lib/silcasn1/silcasn1_encode.c | 778 -- lib/silcasn1/silcasn1_i.h | 117 - lib/silcasn1/silcber.c | 269 - lib/silcasn1/silcber.h | 143 - lib/silcasn1/tests/Makefile.am | 27 - lib/silcasn1/tests/test_silcasn1.c | 767 -- lib/silcclient/.cvsignore | 2 - lib/silccore/.cvsignore | 2 - lib/silccrypt/.cvsignore | 2 - lib/silccrypt/DIRECTORY | 29 - lib/silccrypt/Makefile.ad | 95 - lib/silccrypt/aes.c | 614 - lib/silccrypt/aes.h | 33 - lib/silccrypt/aes_x86.asm | 597 - lib/silccrypt/aes_x86_64.asm | 866 -- lib/silccrypt/blowfish.c | 544 - lib/silccrypt/blowfish.h | 33 - lib/silccrypt/blowfish_internal.h | 40 - lib/silccrypt/cast.c | 470 - lib/silccrypt/cast.h | 33 - lib/silccrypt/cast5.c | 635 - lib/silccrypt/cast5.h | 33 - lib/silccrypt/cast5_internal.h | 38 - lib/silccrypt/cast_internal.h | 38 - lib/silccrypt/ciphers.h | 30 - lib/silccrypt/ciphers_def.h | 595 - lib/silccrypt/configure.ad | 71 - lib/silccrypt/des.c | 1697 --- lib/silccrypt/des.h | 39 - lib/silccrypt/des_internal.h | 51 - lib/silccrypt/dsa.c | 633 - lib/silccrypt/dsa.h | 60 - lib/silccrypt/md5.c | 267 - lib/silccrypt/md5.h | 33 - lib/silccrypt/md5_internal.h | 22 - lib/silccrypt/none.c | 52 - lib/silccrypt/none.h | 33 - lib/silccrypt/rc5.c | 221 - lib/silccrypt/rc5.h | 33 - lib/silccrypt/rc5_internal.h | 42 - lib/silccrypt/rijndael_internal.h | 289 - lib/silccrypt/rsa.c | 205 - lib/silccrypt/rsa.h | 50 - lib/silccrypt/sha1.c | 164 - lib/silccrypt/sha1.h | 34 - lib/silccrypt/sha1_internal.h | 34 - lib/silccrypt/sha256.c | 251 - lib/silccrypt/sha256.h | 34 - lib/silccrypt/sha256_internal.h | 37 - lib/silccrypt/sha256_x86.S | 316 - lib/silccrypt/sha512.c | 239 - lib/silccrypt/sha512.h | 33 - lib/silccrypt/sha512_internal.h | 36 - lib/silccrypt/silccipher.c | 400 - lib/silccrypt/silccipher.h | 417 - lib/silccrypt/silccipher_i.h | 95 - lib/silccrypt/silccrypto.c | 96 - lib/silccrypt/silccrypto.h | 118 - lib/silccrypt/silcdh.h | 173 - lib/silccrypt/silchash.c | 503 - lib/silccrypt/silchash.h | 460 - lib/silccrypt/silchmac.c | 484 - lib/silccrypt/silchmac.h | 447 - lib/silccrypt/silcpk.c | 1660 --- lib/silccrypt/silcpk.h | 186 - lib/silccrypt/silcpk_i.h | 49 - lib/silccrypt/silcpkcs.c | 1075 -- lib/silccrypt/silcpkcs.h | 825 -- lib/silccrypt/silcpkcs1.c | 912 -- lib/silccrypt/silcpkcs1.h | 115 - lib/silccrypt/silcpkcs1_i.h | 41 - lib/silccrypt/silcpkcs_i.h | 366 - lib/silccrypt/silcrng.c | 716 -- lib/silccrypt/silcrng.h | 364 - lib/silccrypt/tests/Makefile.am | 53 - lib/silccrypt/tests/test_aes.c | 305 - lib/silccrypt/tests/test_cast5.c | 213 - lib/silccrypt/tests/test_des.c | 384 - lib/silccrypt/tests/test_dsa.c | 67 - lib/silccrypt/tests/test_hash.c | 80 - lib/silccrypt/tests/test_hmacmd5.c | 124 - lib/silccrypt/tests/test_hmacsha1.c | 124 - lib/silccrypt/tests/test_hmacsha256.c | 123 - lib/silccrypt/tests/test_md5.c | 92 - lib/silccrypt/tests/test_sha1.c | 76 - lib/silccrypt/tests/test_sha256.c | 104 - lib/silccrypt/tests/test_silcpkcs.c | 309 - lib/silccrypt/tests/test_speed.c | 68 - lib/silccrypt/tests/test_twofish.c | 306 - lib/silccrypt/twofish.c | 587 - lib/silccrypt/twofish.h | 33 - lib/silccrypt/twofish_internal.h | 41 - lib/silcmath/.cvsignore | 2 - lib/silcmath/DIRECTORY | 22 - lib/silcmath/Makefile.ad | 67 - lib/silcmath/configure.ad | 138 - lib/silcmath/modinv.c | 100 - lib/silcmath/mp_gmp.c | 236 - lib/silcmath/mp_gmp.h | 27 - lib/silcmath/mp_tfm.c | 246 - lib/silcmath/mp_tfm.h | 27 - lib/silcmath/mp_tma.c | 253 - lib/silcmath/mp_tma.h | 27 - lib/silcmath/mpbin.c | 80 - lib/silcmath/silcmath.h | 71 - lib/silcmath/silcmp.h | 757 -- lib/silcmath/silcprimegen.c | 371 - lib/silcmath/tfm.c | 5481 -------- lib/silcmath/tfm.h | 362 - lib/silcmath/tma.c | 9519 -------------- lib/silcmath/tma.h | 587 - lib/silcmath/tma_class.h | 1000 -- lib/silcmath/tma_superclass.h | 76 - lib/silcsftp/.cvsignore | 2 - lib/silcsim/.cvsignore | 2 - lib/silcsim/Makefile.ad | 89 - lib/silcsim/silcsim.c | 167 - lib/silcsim/silcsim.h | 53 - lib/silcsim/silcsimutil.c | 46 - lib/silcsim/silcsimutil.h | 29 - lib/silcske/.cvsignore | 2 - lib/silcskr/DIRECTORY | 20 - lib/silcskr/Makefile.ad | 30 - lib/silcskr/silcskr.c | 990 -- lib/silcskr/silcskr.h | 590 - lib/silcskr/silcskr_i.h | 45 - lib/silcskr/tests/Makefile.am | 27 - lib/silcskr/tests/test_silcskr.c | 138 - lib/silcssh/DIRECTORY | 32 - lib/silcssh/Makefile.ad | 30 - lib/silcssh/silcssh.c | 435 - lib/silcssh/silcssh.h | 284 - lib/silcssh/silcssh_i.h | 32 - lib/silcssh/silcssh_pkcs.c | 1265 -- lib/silcssh/silcssh_pkcs.h | 49 - lib/silcssh/tests/Makefile.am | 28 - lib/silcssh/tests/test_silcssh.c | 82 - lib/silcutil/.cvsignore | 2 - lib/silcutil/DIRECTORY | 55 - lib/silcutil/Makefile.ad | 138 - lib/silcutil/beos/.cvsignore | 2 - lib/silcutil/beos/Makefile.am | 31 - lib/silcutil/beos/silcbeosmutex.c | 68 - lib/silcutil/beos/silcbeosnet.c | 24 - lib/silcutil/beos/silcbeosschedule.c | 23 - lib/silcutil/beos/silcbeossockconn.c | 136 - lib/silcutil/beos/silcbeosthread.c | 112 - lib/silcutil/beos/silcbeosutil.c | 127 - lib/silcutil/os2/.cvsignore | 2 - lib/silcutil/os2/Makefile.am | 31 - lib/silcutil/os2/silcos2mutex.c | 68 - lib/silcutil/os2/silcos2net.c | 316 - lib/silcutil/os2/silcos2schedule.c | 163 - lib/silcutil/os2/silcos2sockconn.c | 122 - lib/silcutil/os2/silcos2thread.c | 113 - lib/silcutil/os2/silcos2util.c | 61 - lib/silcutil/silcasync.c | 113 - lib/silcutil/silcasync.h | 329 - lib/silcutil/silcasync_i.h | 35 - lib/silcutil/silcatomic.h | 1265 -- lib/silcutil/silcbase64.c | 177 - lib/silcutil/silcbase64.h | 88 - lib/silcutil/silcbitops.c | 247 - lib/silcutil/silcbitops.h | 280 - lib/silcutil/silcbuffer.h | 1584 --- lib/silcutil/silcbuffmt.c | 1379 -- lib/silcutil/silcbuffmt.h | 1082 -- lib/silcutil/silccond.h | 189 - lib/silcutil/silcconfig.c | 657 - lib/silcutil/silcconfig.h | 462 - lib/silcutil/silcdir.h | 240 - lib/silcutil/silcdlist.h | 361 - lib/silcutil/silcdll.c | 87 - lib/silcutil/silcdll.h | 128 - lib/silcutil/silcenv.c | 68 - lib/silcutil/silcenv.h | 94 - lib/silcutil/silcerrno.c | 447 - lib/silcutil/silcerrno.h | 206 - lib/silcutil/silcfdstream.c | 349 - lib/silcutil/silcfdstream.h | 150 - lib/silcutil/silcfileutil.c | 209 - lib/silcutil/silcfileutil.h | 191 - lib/silcutil/silcfsm.c | 808 -- lib/silcutil/silcfsm.h | 1073 -- lib/silcutil/silcfsm_i.h | 106 - lib/silcutil/silcgetopt.c | 85 - lib/silcutil/silcgetopt.h | 115 - lib/silcutil/silchashtable.c | 1123 -- lib/silcutil/silchashtable.h | 898 -- lib/silcutil/silclist.h | 358 - lib/silcutil/silclog.c | 556 - lib/silcutil/silclog.h | 606 - lib/silcutil/silclog_i.h | 40 - lib/silcutil/silcmemory.c | 193 - lib/silcutil/silcmemory.h | 283 - lib/silcutil/silcmime.c | 934 -- lib/silcutil/silcmime.h | 430 - lib/silcutil/silcmime_i.h | 42 - lib/silcutil/silcmutex.h | 233 - lib/silcutil/silcnet.c | 631 - lib/silcutil/silcnet.h | 683 - lib/silcutil/silcnet_i.h | 50 - lib/silcutil/silcregex.c | 2731 ---- lib/silcutil/silcregex.h | 379 - lib/silcutil/silcschedule.c | 1581 --- lib/silcutil/silcschedule.h | 987 -- lib/silcutil/silcschedule_i.h | 177 - lib/silcutil/silcsnprintf.c | 796 -- lib/silcutil/silcsnprintf.h | 122 - lib/silcutil/silcsocketstream.c | 417 - lib/silcutil/silcsocketstream.h | 245 - lib/silcutil/silcsocketstream_i.h | 73 - lib/silcutil/silcstack.c | 686 - lib/silcutil/silcstack.h | 425 - lib/silcutil/silcstack_i.h | 95 - lib/silcutil/silcstream.c | 63 - lib/silcutil/silcstream.h | 275 - lib/silcutil/silcstringprep.c | 269 - lib/silcutil/silcstringprep.h | 138 - lib/silcutil/silcstrutil.c | 270 - lib/silcutil/silcstrutil.h | 147 - lib/silcutil/silcthread.c | 608 - lib/silcutil/silcthread.h | 389 - lib/silcutil/silcthread_i.h | 49 - lib/silcutil/silcthreadqueue.c | 178 - lib/silcutil/silcthreadqueue.h | 180 - lib/silcutil/silctime.c | 429 - lib/silcutil/silctime.h | 318 - lib/silcutil/silctimer.c | 130 - lib/silcutil/silctimer.h | 289 - lib/silcutil/silctimer_i.h | 38 - lib/silcutil/silctypes.h | 1093 -- lib/silcutil/silcutf8.c | 679 - lib/silcutil/silcutf8.h | 211 - lib/silcutil/silcutil.c | 504 - lib/silcutil/silcutil.h | 284 - lib/silcutil/stacktrace.c | 233 - lib/silcutil/stacktrace.h | 49 - lib/silcutil/symbian/.cvsignore | 2 - lib/silcutil/symbian/Makefile.am | 23 - lib/silcutil/symbian/silcsymbiannet.cpp | 977 -- lib/silcutil/symbian/silcsymbianscheduler.cpp | 309 - .../symbian/silcsymbiansocketstream.cpp | 484 - .../symbian/silcsymbiansocketstream.h | 46 - lib/silcutil/symbian/silcsymbianthread.cpp | 440 - lib/silcutil/symbian/silcsymbianutil.cpp | 99 - lib/silcutil/tests/Makefile.am | 53 - lib/silcutil/tests/test_silcasync.c | 158 - lib/silcutil/tests/test_silcatomic.c | 119 - lib/silcutil/tests/test_silcbitops.c | 138 - lib/silcutil/tests/test_silcbuffmt.c | 157 - lib/silcutil/tests/test_silcdir.c | 53 - lib/silcutil/tests/test_silcdll.c | 41 - lib/silcutil/tests/test_silcenv.c | 34 - lib/silcutil/tests/test_silcfdstream.c | 231 - lib/silcutil/tests/test_silcfsm.c | 486 - lib/silcutil/tests/test_silchashtable.c | 317 - lib/silcutil/tests/test_silclist.c | 165 - lib/silcutil/tests/test_silcmime.c | 283 - lib/silcutil/tests/test_silcmutex.c | 183 - lib/silcutil/tests/test_silcnet.c | 235 - lib/silcutil/tests/test_silcregex.c | 616 - lib/silcutil/tests/test_silcschedule.c | 189 - lib/silcutil/tests/test_silcstack.c | 207 - lib/silcutil/tests/test_silcstringprep.c | 167 - lib/silcutil/tests/test_silcstrutil.c | 196 - lib/silcutil/tests/test_silcthread.c | 107 - lib/silcutil/tests/test_silcthreadqueue.c | 120 - lib/silcutil/tests/test_silctime.c | 45 - lib/silcutil/tests/test_silctimer.c | 94 - lib/silcutil/unix/.cvsignore | 2 - lib/silcutil/unix/Makefile.am | 31 - lib/silcutil/unix/silcunixdir.c | 254 - lib/silcutil/unix/silcunixnet.c | 1014 -- lib/silcutil/unix/silcunixschedule.c | 613 - lib/silcutil/unix/silcunixsocketstream.c | 321 - lib/silcutil/unix/silcunixthread.c | 405 - lib/silcutil/unix/silcunixutil.c | 87 - lib/silcutil/win32/.cvsignore | 2 - lib/silcutil/win32/Makefile.am | 30 - lib/silcutil/win32/silcwin32net.c | 957 -- lib/silcutil/win32/silcwin32schedule.c | 398 - lib/silcutil/win32/silcwin32socketstream.c | 233 - lib/silcutil/win32/silcwin32thread.c | 462 - lib/silcutil/win32/silcwin32util.c | 59 - lib/zlib/ChangeLog | 481 - lib/zlib/FAQ | 100 - lib/zlib/INDEX | 86 - lib/zlib/Make_vms.com | 115 - lib/zlib/Makefile | 175 - lib/zlib/Makefile.in | 175 - lib/zlib/Makefile.riscos | 151 - lib/zlib/README | 147 - lib/zlib/adler32.c | 48 - lib/zlib/algorithm.txt | 213 - lib/zlib/amiga/Makefile.pup | 66 - lib/zlib/amiga/Makefile.sas | 64 - lib/zlib/compress.c | 68 - lib/zlib/configure | 212 - lib/zlib/contrib/README.contrib | 34 - lib/zlib/contrib/asm386/gvmat32.asm | 559 - lib/zlib/contrib/asm386/gvmat32c.c | 200 - lib/zlib/contrib/asm386/mkgvmt32.bat | 1 - lib/zlib/contrib/asm386/zlibvc.def | 74 - lib/zlib/contrib/asm386/zlibvc.dsp | 651 - lib/zlib/contrib/asm386/zlibvc.dsw | 41 - lib/zlib/contrib/asm586/README.586 | 43 - lib/zlib/contrib/asm586/match.S | 354 - lib/zlib/contrib/asm686/README.686 | 34 - lib/zlib/contrib/asm686/match.S | 327 - lib/zlib/contrib/delphi/zlib.mak | 36 - lib/zlib/contrib/delphi/zlibdef.pas | 169 - lib/zlib/contrib/delphi2/d_zlib.bpr | 224 - lib/zlib/contrib/delphi2/d_zlib.cpp | 17 - lib/zlib/contrib/delphi2/readme.txt | 17 - lib/zlib/contrib/delphi2/zlib.bpg | 26 - lib/zlib/contrib/delphi2/zlib.bpr | 225 - lib/zlib/contrib/delphi2/zlib.cpp | 22 - lib/zlib/contrib/delphi2/zlib.pas | 534 - lib/zlib/contrib/delphi2/zlib32.bpr | 174 - lib/zlib/contrib/delphi2/zlib32.cpp | 42 - lib/zlib/contrib/iostream/test.cpp | 24 - lib/zlib/contrib/iostream/zfstream.cpp | 329 - lib/zlib/contrib/iostream/zfstream.h | 142 - lib/zlib/contrib/iostream2/zstream.h | 307 - lib/zlib/contrib/iostream2/zstream_test.cpp | 25 - lib/zlib/contrib/minizip/ChangeLogUnzip | 38 - lib/zlib/contrib/minizip/Makefile | 25 - lib/zlib/contrib/minizip/miniunz.c | 508 - lib/zlib/contrib/minizip/minizip.c | 302 - lib/zlib/contrib/minizip/readme.txt | 37 - lib/zlib/contrib/minizip/unzip.c | 1294 -- lib/zlib/contrib/minizip/unzip.def | 15 - lib/zlib/contrib/minizip/unzip.h | 275 - lib/zlib/contrib/minizip/zip.c | 718 -- lib/zlib/contrib/minizip/zip.def | 5 - lib/zlib/contrib/minizip/zip.h | 150 - lib/zlib/contrib/minizip/zlibvc.def | 74 - lib/zlib/contrib/minizip/zlibvc.dsp | 651 - lib/zlib/contrib/minizip/zlibvc.dsw | 41 - lib/zlib/contrib/untgz/Makefile | 14 - lib/zlib/contrib/untgz/makefile.w32 | 63 - lib/zlib/contrib/untgz/untgz.c | 522 - lib/zlib/contrib/visual-basic.txt | 69 - lib/zlib/crc32.c | 162 - lib/zlib/deflate.c | 1350 -- lib/zlib/deflate.h | 318 - lib/zlib/descrip.mms | 48 - lib/zlib/example.c | 556 - lib/zlib/gzio.c | 875 -- lib/zlib/infblock.c | 403 - lib/zlib/infblock.h | 39 - lib/zlib/infcodes.c | 251 - lib/zlib/infcodes.h | 27 - lib/zlib/inffast.c | 183 - lib/zlib/inffast.h | 17 - lib/zlib/inffixed.h | 151 - lib/zlib/inflate.c | 366 - lib/zlib/inftrees.c | 454 - lib/zlib/inftrees.h | 58 - lib/zlib/infutil.c | 87 - lib/zlib/infutil.h | 98 - lib/zlib/maketree.c | 85 - lib/zlib/minigzip.c | 320 - lib/zlib/msdos/Makefile.b32 | 104 - lib/zlib/msdos/Makefile.bor | 125 - lib/zlib/msdos/Makefile.dj2 | 100 - lib/zlib/msdos/Makefile.emx | 69 - lib/zlib/msdos/Makefile.msc | 121 - lib/zlib/msdos/Makefile.tc | 108 - lib/zlib/msdos/Makefile.w32 | 97 - lib/zlib/msdos/Makefile.wat | 103 - lib/zlib/msdos/zlib.def | 60 - lib/zlib/msdos/zlib.rc | 32 - lib/zlib/nt/Makefile.emx | 138 - lib/zlib/nt/Makefile.gcc | 87 - lib/zlib/nt/Makefile.nt | 88 - lib/zlib/nt/zlib.dnt | 47 - lib/zlib/os2/Makefile.os2 | 136 - lib/zlib/os2/zlib.def | 51 - lib/zlib/trees.c | 1214 -- lib/zlib/trees.h | 128 - lib/zlib/uncompr.c | 58 - lib/zlib/zconf.h | 279 - lib/zlib/zlib.3 | 107 - lib/zlib/zlib.h | 893 -- lib/zlib/zlib.html | 971 -- lib/zlib/zutil.c | 225 - lib/zlib/zutil.h | 220 - public_html/html/about.php | 92 - public_html/html/contact.php | 32 - public_html/html/contribute.php | 78 - public_html/html/copying.php | 328 - public_html/html/counter.php | 32 - public_html/html/cryptofaq.php | 631 - public_html/html/cvs.php | 197 - public_html/html/docs.php | 139 - public_html/html/download.php | 349 - public_html/html/faq.php | 1032 -- public_html/html/features.php | 90 - public_html/html/help.php | 67 - public_html/html/history.php | 32 - public_html/html/install.php | 17 - public_html/html/links.php | 42 - public_html/html/lists.php | 54 - public_html/html/mirrors.php | 42 - public_html/html/news.php | 80 - public_html/html/servers.php | 101 - public_html/html/todo.php | 17 - public_html/html/whitepaper.php | 947 -- public_html/img/silc.gif | Bin 9010 -> 0 bytes public_html/index.php | 206 - public_html/silc.css | 115 - silc.m4 | 159 - util/robodoc/AUTHORS | 8 - util/robodoc/COPYING | 340 - util/robodoc/ChangeLog | 65 - util/robodoc/Docs/example.c | 29 - util/robodoc/Docs/example_makefile | 121 - util/robodoc/Docs/general.m4 | 14 - util/robodoc/Docs/main.css | 106 - util/robodoc/Docs/makefile.am | 30 - util/robodoc/Docs/makefile.in | 260 - util/robodoc/Docs/robodoc.1 | 246 - util/robodoc/Docs/robodoc.html | 1320 -- util/robodoc/Docs/robodoc.m4 | 1269 -- util/robodoc/Docs/tocgen.m4 | 6 - util/robodoc/Examples/C/makefile | 34 - util/robodoc/Examples/C/prog1.c | 55 - util/robodoc/Examples/C/prog1.c.html | 69 - util/robodoc/Examples/C/prog2.c | 50 - util/robodoc/Examples/C/prog2.c.html | 63 - util/robodoc/Examples/CPP/makefile | 44 - util/robodoc/Examples/CPP/masterindex.html | 53 - util/robodoc/Examples/CPP/muppets.cpp | 51 - util/robodoc/Examples/CPP/muppets.cpp.html | 68 - util/robodoc/Examples/CPP/muppets.h | 25 - util/robodoc/Examples/CPP/muppets.h.html | 38 - util/robodoc/Headers/assembler.sample | 63 - util/robodoc/Headers/basic.sample | 63 - util/robodoc/Headers/c.sample | 46 - util/robodoc/Headers/cpp.sample | 68 - util/robodoc/Headers/fortan.sample | 63 - util/robodoc/Headers/html.sample | 38 - util/robodoc/Headers/tcl.sample | 39 - util/robodoc/INSTALL | 49 - util/robodoc/NEWS | 17 - util/robodoc/README | 63 - util/robodoc/Source/analyser.c | 677 - util/robodoc/Source/analyser.h | 13 - util/robodoc/Source/config.h.in | 29 - util/robodoc/Source/folds.c | 141 - util/robodoc/Source/folds.h | 47 - util/robodoc/Source/generator.c | 1729 --- util/robodoc/Source/generator.h | 20 - util/robodoc/Source/headers.c | 160 - util/robodoc/Source/headers.h | 72 - util/robodoc/Source/items.c | 280 - util/robodoc/Source/items.h | 83 - util/robodoc/Source/links.c | 442 - util/robodoc/Source/links.h | 44 - util/robodoc/Source/makefile.am | 140 - util/robodoc/Source/makefile.in | 437 - util/robodoc/Source/makefile.plain | 215 - util/robodoc/Source/robodoc.c | 862 -- util/robodoc/Source/robodoc.h | 91 - util/robodoc/Source/stamp-h.in | 1 - util/robodoc/Source/util.c | 686 - util/robodoc/Source/util.h | 30 - util/robodoc/TODO | 8 - util/robodoc/aclocal.m4 | 811 -- util/robodoc/configure | 4795 ------- util/robodoc/configure.in | 29 - util/robodoc/install-sh | 251 - util/robodoc/makefile.am | 87 - util/robodoc/makefile.in | 591 - util/robodoc/missing | 190 - util/robodoc/mkinstalldirs | 40 - 565 files changed, 646 insertions(+), 178590 deletions(-) delete mode 100644 .cvsignore delete mode 100644 CHANGES.CRYPTO delete mode 100644 CHANGES.RUNTIME rename README.CVS => README.GIT (100%) delete mode 100644 apps/asn1utils/Makefile.am delete mode 100644 apps/asn1utils/asn1dump.c delete mode 100644 apps/asn1utils/configure.ad delete mode 100644 apps/autodist/AUTHORS delete mode 100644 apps/autodist/CHANGES delete mode 100644 apps/autodist/COPYING delete mode 100644 apps/autodist/INSTALL delete mode 100644 apps/autodist/Makefile.am delete mode 100644 apps/autodist/README delete mode 100644 apps/autodist/TODO delete mode 100644 apps/autodist/autodist.conf delete mode 100755 apps/autodist/autodist.in delete mode 100644 apps/autodist/autodist.spec.in delete mode 100644 apps/autodist/configure.ad delete mode 100644 apps/autodist/default delete mode 100644 apps/autodist/doc/Makefile.am delete mode 100644 apps/autodist/doc/autodist.1.in delete mode 100644 apps/autodist/doc/autodist.texi delete mode 100644 apps/autodist/doc/fdl.texi delete mode 100755 apps/autodist/doc/mdate-sh delete mode 100644 apps/autodist/doc/texinfo.tex delete mode 100755 apps/autodist/makedist.in delete mode 100644 apps/autodist/tests/Makefile.am delete mode 100755 apps/autodist/tests/autodist1.test delete mode 100755 apps/autodist/tests/autodist2.test delete mode 100755 apps/autodist/tests/autodist3.test delete mode 100755 apps/autodist/tests/autodist4.test delete mode 100755 apps/autodist/tests/autodist5.test delete mode 100755 apps/autodist/tests/autodist6.test delete mode 100755 apps/autodist/tests/autodist7.test delete mode 100644 apps/irssi/.cvsignore delete mode 100644 apps/irssi/docs/.cvsignore delete mode 100644 apps/irssi/docs/help/in/.cvsignore delete mode 100644 apps/irssi/scripts/.cvsignore delete mode 100644 apps/irssi/src/.cvsignore delete mode 100644 apps/irssi/src/core/.cvsignore delete mode 100644 apps/irssi/src/fe-common/core/.cvsignore delete mode 100644 apps/irssi/src/fe-text/.cvsignore delete mode 100644 apps/irssi/src/lib-config/.cvsignore delete mode 100644 apps/irssi/src/lib-popt/.cvsignore delete mode 100644 apps/irssi/src/perl/.cvsignore delete mode 100644 apps/irssi/src/perl/common/.cvsignore delete mode 100644 apps/irssi/src/perl/textui/.cvsignore delete mode 100644 apps/irssi/src/perl/ui/.cvsignore delete mode 100644 apps/silcd/.cvsignore delete mode 100644 distdir/autodist delete mode 100644 distdir/autodist-post-process-dist delete mode 100644 doc/.cvsignore delete mode 100644 includes/.cvsignore create mode 100644 includes/silccompile.h delete mode 100644 lib/.cvsignore delete mode 100644 lib/contrib/.cvsignore delete mode 100644 lib/contrib/Makefile.ad delete mode 100644 lib/contrib/gunicomp.h delete mode 100644 lib/contrib/gunidecomp.h delete mode 100644 lib/contrib/nfkc.c delete mode 100644 lib/contrib/rfc3454.c delete mode 100644 lib/contrib/stringprep.c delete mode 100644 lib/contrib/stringprep.h delete mode 100644 lib/silcacc/DIRECTORY delete mode 100644 lib/silcacc/Makefile.ad delete mode 100644 lib/silcacc/silcacc.c delete mode 100644 lib/silcacc/silcacc.h delete mode 100644 lib/silcacc/silcacc_pkcs.c delete mode 100644 lib/silcacc/softacc.c delete mode 100644 lib/silcacc/softacc.h delete mode 100644 lib/silcacc/tests/Makefile.am delete mode 100644 lib/silcacc/tests/test_softacc.c delete mode 100644 lib/silcasn1/DIRECTORY delete mode 100644 lib/silcasn1/Makefile.ad delete mode 100644 lib/silcasn1/silcasn1.c delete mode 100644 lib/silcasn1/silcasn1.h delete mode 100644 lib/silcasn1/silcasn1_decode.c delete mode 100644 lib/silcasn1/silcasn1_encode.c delete mode 100644 lib/silcasn1/silcasn1_i.h delete mode 100644 lib/silcasn1/silcber.c delete mode 100644 lib/silcasn1/silcber.h delete mode 100644 lib/silcasn1/tests/Makefile.am delete mode 100644 lib/silcasn1/tests/test_silcasn1.c delete mode 100644 lib/silcclient/.cvsignore delete mode 100644 lib/silccore/.cvsignore delete mode 100644 lib/silccrypt/.cvsignore delete mode 100644 lib/silccrypt/DIRECTORY delete mode 100644 lib/silccrypt/Makefile.ad delete mode 100644 lib/silccrypt/aes.c delete mode 100644 lib/silccrypt/aes.h delete mode 100644 lib/silccrypt/aes_x86.asm delete mode 100644 lib/silccrypt/aes_x86_64.asm delete mode 100644 lib/silccrypt/blowfish.c delete mode 100644 lib/silccrypt/blowfish.h delete mode 100644 lib/silccrypt/blowfish_internal.h delete mode 100644 lib/silccrypt/cast.c delete mode 100644 lib/silccrypt/cast.h delete mode 100644 lib/silccrypt/cast5.c delete mode 100644 lib/silccrypt/cast5.h delete mode 100644 lib/silccrypt/cast5_internal.h delete mode 100644 lib/silccrypt/cast_internal.h delete mode 100644 lib/silccrypt/ciphers.h delete mode 100644 lib/silccrypt/ciphers_def.h delete mode 100644 lib/silccrypt/configure.ad delete mode 100644 lib/silccrypt/des.c delete mode 100644 lib/silccrypt/des.h delete mode 100644 lib/silccrypt/des_internal.h delete mode 100644 lib/silccrypt/dsa.c delete mode 100644 lib/silccrypt/dsa.h delete mode 100644 lib/silccrypt/md5.c delete mode 100644 lib/silccrypt/md5.h delete mode 100644 lib/silccrypt/md5_internal.h delete mode 100644 lib/silccrypt/none.c delete mode 100644 lib/silccrypt/none.h delete mode 100644 lib/silccrypt/rc5.c delete mode 100644 lib/silccrypt/rc5.h delete mode 100644 lib/silccrypt/rc5_internal.h delete mode 100644 lib/silccrypt/rijndael_internal.h delete mode 100644 lib/silccrypt/rsa.c delete mode 100644 lib/silccrypt/rsa.h delete mode 100644 lib/silccrypt/sha1.c delete mode 100644 lib/silccrypt/sha1.h delete mode 100644 lib/silccrypt/sha1_internal.h delete mode 100644 lib/silccrypt/sha256.c delete mode 100644 lib/silccrypt/sha256.h delete mode 100644 lib/silccrypt/sha256_internal.h delete mode 100644 lib/silccrypt/sha256_x86.S delete mode 100644 lib/silccrypt/sha512.c delete mode 100644 lib/silccrypt/sha512.h delete mode 100644 lib/silccrypt/sha512_internal.h delete mode 100644 lib/silccrypt/silccipher.c delete mode 100644 lib/silccrypt/silccipher.h delete mode 100644 lib/silccrypt/silccipher_i.h delete mode 100644 lib/silccrypt/silccrypto.c delete mode 100644 lib/silccrypt/silccrypto.h delete mode 100644 lib/silccrypt/silcdh.h delete mode 100644 lib/silccrypt/silchash.c delete mode 100644 lib/silccrypt/silchash.h delete mode 100644 lib/silccrypt/silchmac.c delete mode 100644 lib/silccrypt/silchmac.h delete mode 100644 lib/silccrypt/silcpk.c delete mode 100644 lib/silccrypt/silcpk.h delete mode 100644 lib/silccrypt/silcpk_i.h delete mode 100644 lib/silccrypt/silcpkcs.c delete mode 100644 lib/silccrypt/silcpkcs.h delete mode 100644 lib/silccrypt/silcpkcs1.c delete mode 100644 lib/silccrypt/silcpkcs1.h delete mode 100644 lib/silccrypt/silcpkcs1_i.h delete mode 100644 lib/silccrypt/silcpkcs_i.h delete mode 100644 lib/silccrypt/silcrng.c delete mode 100644 lib/silccrypt/silcrng.h delete mode 100644 lib/silccrypt/tests/Makefile.am delete mode 100644 lib/silccrypt/tests/test_aes.c delete mode 100644 lib/silccrypt/tests/test_cast5.c delete mode 100644 lib/silccrypt/tests/test_des.c delete mode 100644 lib/silccrypt/tests/test_dsa.c delete mode 100644 lib/silccrypt/tests/test_hash.c delete mode 100644 lib/silccrypt/tests/test_hmacmd5.c delete mode 100644 lib/silccrypt/tests/test_hmacsha1.c delete mode 100644 lib/silccrypt/tests/test_hmacsha256.c delete mode 100644 lib/silccrypt/tests/test_md5.c delete mode 100644 lib/silccrypt/tests/test_sha1.c delete mode 100644 lib/silccrypt/tests/test_sha256.c delete mode 100644 lib/silccrypt/tests/test_silcpkcs.c delete mode 100644 lib/silccrypt/tests/test_speed.c delete mode 100644 lib/silccrypt/tests/test_twofish.c delete mode 100644 lib/silccrypt/twofish.c delete mode 100644 lib/silccrypt/twofish.h delete mode 100644 lib/silccrypt/twofish_internal.h delete mode 100644 lib/silcmath/.cvsignore delete mode 100644 lib/silcmath/DIRECTORY delete mode 100644 lib/silcmath/Makefile.ad delete mode 100644 lib/silcmath/configure.ad delete mode 100644 lib/silcmath/modinv.c delete mode 100644 lib/silcmath/mp_gmp.c delete mode 100644 lib/silcmath/mp_gmp.h delete mode 100644 lib/silcmath/mp_tfm.c delete mode 100644 lib/silcmath/mp_tfm.h delete mode 100644 lib/silcmath/mp_tma.c delete mode 100644 lib/silcmath/mp_tma.h delete mode 100644 lib/silcmath/mpbin.c delete mode 100644 lib/silcmath/silcmath.h delete mode 100644 lib/silcmath/silcmp.h delete mode 100644 lib/silcmath/silcprimegen.c delete mode 100644 lib/silcmath/tfm.c delete mode 100644 lib/silcmath/tfm.h delete mode 100644 lib/silcmath/tma.c delete mode 100644 lib/silcmath/tma.h delete mode 100644 lib/silcmath/tma_class.h delete mode 100644 lib/silcmath/tma_superclass.h delete mode 100644 lib/silcsftp/.cvsignore delete mode 100644 lib/silcsim/.cvsignore delete mode 100644 lib/silcsim/Makefile.ad delete mode 100644 lib/silcsim/silcsim.c delete mode 100644 lib/silcsim/silcsim.h delete mode 100644 lib/silcsim/silcsimutil.c delete mode 100644 lib/silcsim/silcsimutil.h delete mode 100644 lib/silcske/.cvsignore delete mode 100644 lib/silcskr/DIRECTORY delete mode 100644 lib/silcskr/Makefile.ad delete mode 100644 lib/silcskr/silcskr.c delete mode 100644 lib/silcskr/silcskr.h delete mode 100644 lib/silcskr/silcskr_i.h delete mode 100644 lib/silcskr/tests/Makefile.am delete mode 100644 lib/silcskr/tests/test_silcskr.c delete mode 100644 lib/silcssh/DIRECTORY delete mode 100644 lib/silcssh/Makefile.ad delete mode 100644 lib/silcssh/silcssh.c delete mode 100644 lib/silcssh/silcssh.h delete mode 100644 lib/silcssh/silcssh_i.h delete mode 100644 lib/silcssh/silcssh_pkcs.c delete mode 100644 lib/silcssh/silcssh_pkcs.h delete mode 100644 lib/silcssh/tests/Makefile.am delete mode 100644 lib/silcssh/tests/test_silcssh.c delete mode 100644 lib/silcutil/.cvsignore delete mode 100644 lib/silcutil/DIRECTORY delete mode 100644 lib/silcutil/Makefile.ad delete mode 100644 lib/silcutil/beos/.cvsignore delete mode 100644 lib/silcutil/beos/Makefile.am delete mode 100644 lib/silcutil/beos/silcbeosmutex.c delete mode 100644 lib/silcutil/beos/silcbeosnet.c delete mode 100644 lib/silcutil/beos/silcbeosschedule.c delete mode 100644 lib/silcutil/beos/silcbeossockconn.c delete mode 100644 lib/silcutil/beos/silcbeosthread.c delete mode 100644 lib/silcutil/beos/silcbeosutil.c delete mode 100644 lib/silcutil/os2/.cvsignore delete mode 100644 lib/silcutil/os2/Makefile.am delete mode 100644 lib/silcutil/os2/silcos2mutex.c delete mode 100644 lib/silcutil/os2/silcos2net.c delete mode 100644 lib/silcutil/os2/silcos2schedule.c delete mode 100644 lib/silcutil/os2/silcos2sockconn.c delete mode 100644 lib/silcutil/os2/silcos2thread.c delete mode 100644 lib/silcutil/os2/silcos2util.c delete mode 100644 lib/silcutil/silcasync.c delete mode 100644 lib/silcutil/silcasync.h delete mode 100644 lib/silcutil/silcasync_i.h delete mode 100644 lib/silcutil/silcatomic.h delete mode 100644 lib/silcutil/silcbase64.c delete mode 100644 lib/silcutil/silcbase64.h delete mode 100644 lib/silcutil/silcbitops.c delete mode 100644 lib/silcutil/silcbitops.h delete mode 100644 lib/silcutil/silcbuffer.h delete mode 100644 lib/silcutil/silcbuffmt.c delete mode 100644 lib/silcutil/silcbuffmt.h delete mode 100644 lib/silcutil/silccond.h delete mode 100644 lib/silcutil/silcconfig.c delete mode 100644 lib/silcutil/silcconfig.h delete mode 100644 lib/silcutil/silcdir.h delete mode 100644 lib/silcutil/silcdlist.h delete mode 100644 lib/silcutil/silcdll.c delete mode 100644 lib/silcutil/silcdll.h delete mode 100644 lib/silcutil/silcenv.c delete mode 100644 lib/silcutil/silcenv.h delete mode 100644 lib/silcutil/silcerrno.c delete mode 100644 lib/silcutil/silcerrno.h delete mode 100644 lib/silcutil/silcfdstream.c delete mode 100644 lib/silcutil/silcfdstream.h delete mode 100644 lib/silcutil/silcfileutil.c delete mode 100644 lib/silcutil/silcfileutil.h delete mode 100644 lib/silcutil/silcfsm.c delete mode 100644 lib/silcutil/silcfsm.h delete mode 100644 lib/silcutil/silcfsm_i.h delete mode 100644 lib/silcutil/silcgetopt.c delete mode 100644 lib/silcutil/silcgetopt.h delete mode 100644 lib/silcutil/silchashtable.c delete mode 100644 lib/silcutil/silchashtable.h delete mode 100644 lib/silcutil/silclist.h delete mode 100644 lib/silcutil/silclog.c delete mode 100644 lib/silcutil/silclog.h delete mode 100644 lib/silcutil/silclog_i.h delete mode 100644 lib/silcutil/silcmemory.c delete mode 100644 lib/silcutil/silcmemory.h delete mode 100644 lib/silcutil/silcmime.c delete mode 100644 lib/silcutil/silcmime.h delete mode 100644 lib/silcutil/silcmime_i.h delete mode 100644 lib/silcutil/silcmutex.h delete mode 100644 lib/silcutil/silcnet.c delete mode 100644 lib/silcutil/silcnet.h delete mode 100644 lib/silcutil/silcnet_i.h delete mode 100644 lib/silcutil/silcregex.c delete mode 100644 lib/silcutil/silcregex.h delete mode 100644 lib/silcutil/silcschedule.c delete mode 100644 lib/silcutil/silcschedule.h delete mode 100644 lib/silcutil/silcschedule_i.h delete mode 100644 lib/silcutil/silcsnprintf.c delete mode 100644 lib/silcutil/silcsnprintf.h delete mode 100644 lib/silcutil/silcsocketstream.c delete mode 100644 lib/silcutil/silcsocketstream.h delete mode 100644 lib/silcutil/silcsocketstream_i.h delete mode 100644 lib/silcutil/silcstack.c delete mode 100644 lib/silcutil/silcstack.h delete mode 100644 lib/silcutil/silcstack_i.h delete mode 100644 lib/silcutil/silcstream.c delete mode 100644 lib/silcutil/silcstream.h delete mode 100644 lib/silcutil/silcstringprep.c delete mode 100644 lib/silcutil/silcstringprep.h delete mode 100644 lib/silcutil/silcstrutil.c delete mode 100644 lib/silcutil/silcstrutil.h delete mode 100644 lib/silcutil/silcthread.c delete mode 100644 lib/silcutil/silcthread.h delete mode 100644 lib/silcutil/silcthread_i.h delete mode 100644 lib/silcutil/silcthreadqueue.c delete mode 100644 lib/silcutil/silcthreadqueue.h delete mode 100644 lib/silcutil/silctime.c delete mode 100644 lib/silcutil/silctime.h delete mode 100644 lib/silcutil/silctimer.c delete mode 100644 lib/silcutil/silctimer.h delete mode 100644 lib/silcutil/silctimer_i.h delete mode 100644 lib/silcutil/silctypes.h delete mode 100644 lib/silcutil/silcutf8.c delete mode 100644 lib/silcutil/silcutf8.h delete mode 100644 lib/silcutil/silcutil.c delete mode 100644 lib/silcutil/silcutil.h delete mode 100644 lib/silcutil/stacktrace.c delete mode 100644 lib/silcutil/stacktrace.h delete mode 100644 lib/silcutil/symbian/.cvsignore delete mode 100644 lib/silcutil/symbian/Makefile.am delete mode 100644 lib/silcutil/symbian/silcsymbiannet.cpp delete mode 100644 lib/silcutil/symbian/silcsymbianscheduler.cpp delete mode 100644 lib/silcutil/symbian/silcsymbiansocketstream.cpp delete mode 100644 lib/silcutil/symbian/silcsymbiansocketstream.h delete mode 100644 lib/silcutil/symbian/silcsymbianthread.cpp delete mode 100644 lib/silcutil/symbian/silcsymbianutil.cpp delete mode 100644 lib/silcutil/tests/Makefile.am delete mode 100644 lib/silcutil/tests/test_silcasync.c delete mode 100644 lib/silcutil/tests/test_silcatomic.c delete mode 100644 lib/silcutil/tests/test_silcbitops.c delete mode 100644 lib/silcutil/tests/test_silcbuffmt.c delete mode 100644 lib/silcutil/tests/test_silcdir.c delete mode 100644 lib/silcutil/tests/test_silcdll.c delete mode 100644 lib/silcutil/tests/test_silcenv.c delete mode 100644 lib/silcutil/tests/test_silcfdstream.c delete mode 100644 lib/silcutil/tests/test_silcfsm.c delete mode 100644 lib/silcutil/tests/test_silchashtable.c delete mode 100644 lib/silcutil/tests/test_silclist.c delete mode 100644 lib/silcutil/tests/test_silcmime.c delete mode 100644 lib/silcutil/tests/test_silcmutex.c delete mode 100644 lib/silcutil/tests/test_silcnet.c delete mode 100644 lib/silcutil/tests/test_silcregex.c delete mode 100644 lib/silcutil/tests/test_silcschedule.c delete mode 100644 lib/silcutil/tests/test_silcstack.c delete mode 100644 lib/silcutil/tests/test_silcstringprep.c delete mode 100644 lib/silcutil/tests/test_silcstrutil.c delete mode 100644 lib/silcutil/tests/test_silcthread.c delete mode 100644 lib/silcutil/tests/test_silcthreadqueue.c delete mode 100644 lib/silcutil/tests/test_silctime.c delete mode 100644 lib/silcutil/tests/test_silctimer.c delete mode 100644 lib/silcutil/unix/.cvsignore delete mode 100644 lib/silcutil/unix/Makefile.am delete mode 100644 lib/silcutil/unix/silcunixdir.c delete mode 100644 lib/silcutil/unix/silcunixnet.c delete mode 100644 lib/silcutil/unix/silcunixschedule.c delete mode 100644 lib/silcutil/unix/silcunixsocketstream.c delete mode 100644 lib/silcutil/unix/silcunixthread.c delete mode 100644 lib/silcutil/unix/silcunixutil.c delete mode 100644 lib/silcutil/win32/.cvsignore delete mode 100644 lib/silcutil/win32/Makefile.am delete mode 100644 lib/silcutil/win32/silcwin32net.c delete mode 100644 lib/silcutil/win32/silcwin32schedule.c delete mode 100644 lib/silcutil/win32/silcwin32socketstream.c delete mode 100644 lib/silcutil/win32/silcwin32thread.c delete mode 100644 lib/silcutil/win32/silcwin32util.c delete mode 100644 lib/zlib/ChangeLog delete mode 100644 lib/zlib/FAQ delete mode 100644 lib/zlib/INDEX delete mode 100644 lib/zlib/Make_vms.com delete mode 100644 lib/zlib/Makefile delete mode 100644 lib/zlib/Makefile.in delete mode 100644 lib/zlib/Makefile.riscos delete mode 100644 lib/zlib/README delete mode 100644 lib/zlib/adler32.c delete mode 100644 lib/zlib/algorithm.txt delete mode 100644 lib/zlib/amiga/Makefile.pup delete mode 100644 lib/zlib/amiga/Makefile.sas delete mode 100644 lib/zlib/compress.c delete mode 100755 lib/zlib/configure delete mode 100644 lib/zlib/contrib/README.contrib delete mode 100644 lib/zlib/contrib/asm386/gvmat32.asm delete mode 100644 lib/zlib/contrib/asm386/gvmat32c.c delete mode 100644 lib/zlib/contrib/asm386/mkgvmt32.bat delete mode 100644 lib/zlib/contrib/asm386/zlibvc.def delete mode 100644 lib/zlib/contrib/asm386/zlibvc.dsp delete mode 100644 lib/zlib/contrib/asm386/zlibvc.dsw delete mode 100644 lib/zlib/contrib/asm586/README.586 delete mode 100644 lib/zlib/contrib/asm586/match.S delete mode 100644 lib/zlib/contrib/asm686/README.686 delete mode 100644 lib/zlib/contrib/asm686/match.S delete mode 100644 lib/zlib/contrib/delphi/zlib.mak delete mode 100644 lib/zlib/contrib/delphi/zlibdef.pas delete mode 100644 lib/zlib/contrib/delphi2/d_zlib.bpr delete mode 100644 lib/zlib/contrib/delphi2/d_zlib.cpp delete mode 100644 lib/zlib/contrib/delphi2/readme.txt delete mode 100644 lib/zlib/contrib/delphi2/zlib.bpg delete mode 100644 lib/zlib/contrib/delphi2/zlib.bpr delete mode 100644 lib/zlib/contrib/delphi2/zlib.cpp delete mode 100644 lib/zlib/contrib/delphi2/zlib.pas delete mode 100644 lib/zlib/contrib/delphi2/zlib32.bpr delete mode 100644 lib/zlib/contrib/delphi2/zlib32.cpp delete mode 100644 lib/zlib/contrib/iostream/test.cpp delete mode 100644 lib/zlib/contrib/iostream/zfstream.cpp delete mode 100644 lib/zlib/contrib/iostream/zfstream.h delete mode 100644 lib/zlib/contrib/iostream2/zstream.h delete mode 100644 lib/zlib/contrib/iostream2/zstream_test.cpp delete mode 100644 lib/zlib/contrib/minizip/ChangeLogUnzip delete mode 100644 lib/zlib/contrib/minizip/Makefile delete mode 100644 lib/zlib/contrib/minizip/miniunz.c delete mode 100644 lib/zlib/contrib/minizip/minizip.c delete mode 100644 lib/zlib/contrib/minizip/readme.txt delete mode 100644 lib/zlib/contrib/minizip/unzip.c delete mode 100644 lib/zlib/contrib/minizip/unzip.def delete mode 100644 lib/zlib/contrib/minizip/unzip.h delete mode 100644 lib/zlib/contrib/minizip/zip.c delete mode 100644 lib/zlib/contrib/minizip/zip.def delete mode 100644 lib/zlib/contrib/minizip/zip.h delete mode 100644 lib/zlib/contrib/minizip/zlibvc.def delete mode 100644 lib/zlib/contrib/minizip/zlibvc.dsp delete mode 100644 lib/zlib/contrib/minizip/zlibvc.dsw delete mode 100644 lib/zlib/contrib/untgz/Makefile delete mode 100644 lib/zlib/contrib/untgz/makefile.w32 delete mode 100644 lib/zlib/contrib/untgz/untgz.c delete mode 100644 lib/zlib/contrib/visual-basic.txt delete mode 100644 lib/zlib/crc32.c delete mode 100644 lib/zlib/deflate.c delete mode 100644 lib/zlib/deflate.h delete mode 100644 lib/zlib/descrip.mms delete mode 100644 lib/zlib/example.c delete mode 100644 lib/zlib/gzio.c delete mode 100644 lib/zlib/infblock.c delete mode 100644 lib/zlib/infblock.h delete mode 100644 lib/zlib/infcodes.c delete mode 100644 lib/zlib/infcodes.h delete mode 100644 lib/zlib/inffast.c delete mode 100644 lib/zlib/inffast.h delete mode 100644 lib/zlib/inffixed.h delete mode 100644 lib/zlib/inflate.c delete mode 100644 lib/zlib/inftrees.c delete mode 100644 lib/zlib/inftrees.h delete mode 100644 lib/zlib/infutil.c delete mode 100644 lib/zlib/infutil.h delete mode 100644 lib/zlib/maketree.c delete mode 100644 lib/zlib/minigzip.c delete mode 100644 lib/zlib/msdos/Makefile.b32 delete mode 100644 lib/zlib/msdos/Makefile.bor delete mode 100644 lib/zlib/msdos/Makefile.dj2 delete mode 100644 lib/zlib/msdos/Makefile.emx delete mode 100644 lib/zlib/msdos/Makefile.msc delete mode 100644 lib/zlib/msdos/Makefile.tc delete mode 100644 lib/zlib/msdos/Makefile.w32 delete mode 100644 lib/zlib/msdos/Makefile.wat delete mode 100644 lib/zlib/msdos/zlib.def delete mode 100644 lib/zlib/msdos/zlib.rc delete mode 100644 lib/zlib/nt/Makefile.emx delete mode 100644 lib/zlib/nt/Makefile.gcc delete mode 100644 lib/zlib/nt/Makefile.nt delete mode 100644 lib/zlib/nt/zlib.dnt delete mode 100644 lib/zlib/os2/Makefile.os2 delete mode 100644 lib/zlib/os2/zlib.def delete mode 100644 lib/zlib/trees.c delete mode 100644 lib/zlib/trees.h delete mode 100644 lib/zlib/uncompr.c delete mode 100644 lib/zlib/zconf.h delete mode 100644 lib/zlib/zlib.3 delete mode 100644 lib/zlib/zlib.h delete mode 100644 lib/zlib/zlib.html delete mode 100644 lib/zlib/zutil.c delete mode 100644 lib/zlib/zutil.h delete mode 100644 public_html/html/about.php delete mode 100644 public_html/html/contact.php delete mode 100644 public_html/html/contribute.php delete mode 100644 public_html/html/copying.php delete mode 100644 public_html/html/counter.php delete mode 100644 public_html/html/cryptofaq.php delete mode 100644 public_html/html/cvs.php delete mode 100644 public_html/html/docs.php delete mode 100644 public_html/html/download.php delete mode 100644 public_html/html/faq.php delete mode 100644 public_html/html/features.php delete mode 100644 public_html/html/help.php delete mode 100644 public_html/html/history.php delete mode 100644 public_html/html/install.php delete mode 100644 public_html/html/links.php delete mode 100644 public_html/html/lists.php delete mode 100644 public_html/html/mirrors.php delete mode 100644 public_html/html/news.php delete mode 100644 public_html/html/servers.php delete mode 100644 public_html/html/todo.php delete mode 100644 public_html/html/whitepaper.php delete mode 100755 public_html/img/silc.gif delete mode 100644 public_html/index.php delete mode 100644 public_html/silc.css delete mode 100644 silc.m4 delete mode 100644 util/robodoc/AUTHORS delete mode 100644 util/robodoc/COPYING delete mode 100644 util/robodoc/ChangeLog delete mode 100644 util/robodoc/Docs/example.c delete mode 100644 util/robodoc/Docs/example_makefile delete mode 100644 util/robodoc/Docs/general.m4 delete mode 100644 util/robodoc/Docs/main.css delete mode 100644 util/robodoc/Docs/makefile.am delete mode 100644 util/robodoc/Docs/makefile.in delete mode 100644 util/robodoc/Docs/robodoc.1 delete mode 100644 util/robodoc/Docs/robodoc.html delete mode 100644 util/robodoc/Docs/robodoc.m4 delete mode 100644 util/robodoc/Docs/tocgen.m4 delete mode 100644 util/robodoc/Examples/C/makefile delete mode 100644 util/robodoc/Examples/C/prog1.c delete mode 100644 util/robodoc/Examples/C/prog1.c.html delete mode 100644 util/robodoc/Examples/C/prog2.c delete mode 100644 util/robodoc/Examples/C/prog2.c.html delete mode 100644 util/robodoc/Examples/CPP/makefile delete mode 100644 util/robodoc/Examples/CPP/masterindex.html delete mode 100644 util/robodoc/Examples/CPP/muppets.cpp delete mode 100644 util/robodoc/Examples/CPP/muppets.cpp.html delete mode 100644 util/robodoc/Examples/CPP/muppets.h delete mode 100644 util/robodoc/Examples/CPP/muppets.h.html delete mode 100644 util/robodoc/Headers/assembler.sample delete mode 100644 util/robodoc/Headers/basic.sample delete mode 100644 util/robodoc/Headers/c.sample delete mode 100644 util/robodoc/Headers/cpp.sample delete mode 100644 util/robodoc/Headers/fortan.sample delete mode 100644 util/robodoc/Headers/html.sample delete mode 100644 util/robodoc/Headers/tcl.sample delete mode 100644 util/robodoc/INSTALL delete mode 100644 util/robodoc/NEWS delete mode 100644 util/robodoc/README delete mode 100644 util/robodoc/Source/analyser.c delete mode 100644 util/robodoc/Source/analyser.h delete mode 100644 util/robodoc/Source/config.h.in delete mode 100644 util/robodoc/Source/folds.c delete mode 100644 util/robodoc/Source/folds.h delete mode 100644 util/robodoc/Source/generator.c delete mode 100644 util/robodoc/Source/generator.h delete mode 100644 util/robodoc/Source/headers.c delete mode 100644 util/robodoc/Source/headers.h delete mode 100644 util/robodoc/Source/items.c delete mode 100644 util/robodoc/Source/items.h delete mode 100644 util/robodoc/Source/links.c delete mode 100644 util/robodoc/Source/links.h delete mode 100644 util/robodoc/Source/makefile.am delete mode 100644 util/robodoc/Source/makefile.in delete mode 100644 util/robodoc/Source/makefile.plain delete mode 100644 util/robodoc/Source/robodoc.c delete mode 100644 util/robodoc/Source/robodoc.h delete mode 100644 util/robodoc/Source/stamp-h.in delete mode 100644 util/robodoc/Source/util.c delete mode 100644 util/robodoc/Source/util.h delete mode 100644 util/robodoc/TODO delete mode 100644 util/robodoc/aclocal.m4 delete mode 100755 util/robodoc/configure delete mode 100644 util/robodoc/configure.in delete mode 100755 util/robodoc/install-sh delete mode 100644 util/robodoc/makefile.am delete mode 100644 util/robodoc/makefile.in delete mode 100755 util/robodoc/missing delete mode 100755 util/robodoc/mkinstalldirs diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index b79d574a..00000000 --- a/.cvsignore +++ /dev/null @@ -1,26 +0,0 @@ -Makefile -Makefile.in -Makefile.am -Makefile.defines -Makefile.defines.in -Makefile.defines_int -Makefile.defines_int.in -acconfig.h -aclocal.m4 -autom4te.cache -autom4te-*.cache -config.cache -config.guess -config.h -config.h.in -config.log -config.status -config.sub -configure -configure.in -libtool -libtool-shared -ltconfig -ltmain.sh -stamp-h -stamp-h.in diff --git a/CHANGES.CRYPTO b/CHANGES.CRYPTO deleted file mode 100644 index 294800a2..00000000 --- a/CHANGES.CRYPTO +++ /dev/null @@ -1,111 +0,0 @@ -Sat Sep 1 12:33:44 EEST 2007 Pekka Riikonen - - * Added SHA-512 to crypto library. - - * Added hmac-sha512 and hmac-sha512-96 to crypto library. - - * Added x86 optimized SHA-256 implementation to crypto library. - -Tue Aug 7 21:05:53 EEST 2007 Pekka Riikonen - - * Changed cipher and hash APIs to use const char *name instead - of const unsigned char *name. - -Sat Jul 21 10:17:11 EEST 2007 Pekka Riikonen - - * Optimized silc_math_prime_test. Affected file is - lib/silcmath/silcprimegen.c. - - * Added DES and 3DES with CBC, CTR and CFB to lib/silccrypt/des.c, - tests/test_des.c. - -Fri Jul 20 19:37:00 EEST 2007 Pekka Riikonen - - * Added DSA algorithm to lib/silccrypt/dsa.[ch], tests/test_dsa.c. - -Thu Jul 19 21:07:02 EEST 2007 Pekka Riikonen - - * Added SILC SSH2 Library to lib/silcssh/. The library provides - SSH2 public key and private key support. It supports standard - SSH2 and OpenSSH public keys, and OpenSSH private keys. Affected - files are in lib/silcssh/. - -Mon Jul 16 19:08:20 EEST 2007 Pekka Riikonen - - * Added PKCS type argument to silc_load_public_key and - silc_load_private_key. Affected files are - lib/silccrypt/silcpkcs.[ch]. - -Sat Jul 14 13:45:34 EEST 2007 Pekka Riikonen - - * Added CFB mode to aes, twofish and cast5. Unified the API - for CBC, CTR and CFB modes. Affected files are in - lib/silccrypt/. - -Fri Jul 13 22:55:13 EEST 2007 Pekka Riikonen - - * Added CAST5 (CAST-128) algorithm. Affected files are - lib/silccrypt/cast5.[ch], cast5_internal, tests/test_cast5.c. - - * Aded CTR encryption mode to Twofish. Affected files are - lib/silccrypt/twofish.[ch], twofish_internal, - tests/test_twofish.c. - - * Added the SilcCipherObject as argument to all cipher operations. - Added silccipher_i.h. Affected files are - lib/silccrypt/silccipher.[ch]. - - * Unified CBC and CTR mode functions in AES implementation. - Affected files are lib/silccrypt/aes.[ch]. - - * Added support for listing only registered (not builtins) ciphers - with silc_cipher_get_supported. Affected files are - lib/silccrypt/silccipher.[ch]. - - * Check if public key or private key is already accelerated before - accelerating. Affected file is lib/silcacc/silcacc_pkcs.c. - -Mon Jul 9 20:21:13 EEST 2007 Pekka Riikonen - - * Added SILC Accelerator Library. Provides generic way to - use accelerators with crypto library. Affected files are in - lib/silcacc/. - - * Added software accelerator, a thread pool system that off-loads - public and private key operations to threads. Affected files - are lib/silcacc/softacc.[ch]. - - * Added SilcPKCSAlgorithm context to SilcPublicKey and - SilcPrivateKey contexts. Affected files are - lib/silccrypt/silcpkcs.[ch], silcpk.c. - -Sun Jul 8 20:20:22 EEST 2007 Pekka Riikonen - - * Added allocation support from given stack with SILC_ASN1_ALLOC - flag. Added support for detecting if SILC_ASN1_NULL is present - with SILC_ASN1_OPTIONAL flag. Added support for getting th - choice index with SILC_ASN1_CHOICE. Affected files are - lib/silcasn1/silcasn1.h, silcasn1_encode.c and silcasn1_decode.c. - - * Crypto library changes. - - Rewrote and redesigned crypto library initialization. Added - silc_crypto_init and silc_crypto_uninit. - - Added SilcPKCSObject and SilcPKSCAlgorithm contexts to all - SilcPKCSObject operation callbacks and SilcPKCSAlgorithm - operation callbacks, respectively, as argument. - - Changed silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign - and silc_pkcs_verify APIs asynchronous. They take callback - functions now. Added same callbacks to all SilcPKCSObject - and SilcPKCSAlgorithm operation callbacks. - -Tue Jul 3 22:45:56 EEST 2007 Pekka Riikonen - - * Added user specified SilcStack support to SILC ASN.1 API. - Affected files are lib/silcasn1/silcasn1.[ch]. - ------------------------------------------------------------------------------ - -For older changes please see the CHANGES file from the CVS tree. diff --git a/CHANGES.RUNTIME b/CHANGES.RUNTIME deleted file mode 100644 index d62f668f..00000000 --- a/CHANGES.RUNTIME +++ /dev/null @@ -1,365 +0,0 @@ -Thu Jan 17 16:40:49 EET 2008 Pekka Riikonen - - * Added SILC Thread Queue API to lib/silcutil/silcthreadqueue.[ch]. - -Tue Jan 15 19:44:36 EET 2008 Pekka Riikonen - - * Added SILC Dir API to lib/silcutil/silcdir.h. Implemented it - for Unix (POSIX). Affected files are lib/silcutil/silcdir.h, - lib/silcutil/unix/silcunixdir.c. - -Sun Jan 13 17:11:26 EET 2008 Pekka Riikonen - - * Added silc_buffer_memcmp and silc_buffer_tail. Fixed SilcBuffer - reallocation when reducing the buffer size. Affected file is - lib/silcutil/silcbuffer.h. - - * Added SILC_STR_REPLACE. Removed SILC_STR_STRING_APPEND. - Fixed various SILC_STR_REGEX bugs. Affected files are - lib/silcutil/silcbuffmt.[ch] and silctypes.h. - - * Added silc_subst. Regex matching and substitution with the - familiar Sed syntax. Affected files are - lib/silcutil/silcregex.[ch] and lib/silcutil/silcerrno.[ch]. - -Tue Jan 8 17:08:28 EET 2008 Pekka Riikonen - - * Moved SILC protocol ID specific utility functions to SILC - core library from utility library. Affected files are - lib/silcutil/silcutil.[ch]. - -Tue Jan 8 09:41:57 EET 2008 Pekka Riikonen - - * Fixed printable fingerprint bufferoverlfow, RedHat bug 372021. - Affected file is lib/silcutil/silcutil.c. - -Sat Jan 5 20:19:28 EET 2008 Pekka Riikonen - - * Added SILC_STR_DELETE buffer format macro. Added support for - deleting data after regex match with SILC_STR_REGEX. Affected - files are lib/silcutil/silcbuffmt.[ch]. - - * Handle regex anychar (.) with bounded repeat correctly. - Affected file is lib/silcutil/silcregex.c. - -Sat Jan 5 18:00:06 EET 2008 Pekka Riikonen - - * Added silc_buffer_equal to lib/silcutil/silcbuffer.h. - - * Added SILC_STR_STRING and SILC_STR_STRING_APPEND buffer format - macros. Affected files are lib/silcutil/silcbuffmt.[ch]. - - * Added support for matching and appending with SILC_STR_REGEX - and SILC_STR_STRING_APPEND. Affected files are - lib/silcutil/silcbuffmt.[ch]. - -Thu Jan 3 18:37:42 EET 2008 Pekka Riikonen - - * Added SilcStack support to silc_regex and silc_regex_buffer - calls. Affected files are lib/silcutil/silcregex.[ch]. - -Wed Jan 2 22:39:57 EET 2008 Pekka Riikonen - - * Added silc_stack_[set|get]_global to set/get global per-thread - SilcStack. Affected files are lib/silcutil/silcstack.[ch]. - - * Imported new improved free regex implementation. Added (again) - support for SILC_REGEX_NOTBOL and SILC_REGEX_NOTEOLF flags. - Added also support for POSIX bounded repeat expression (a{n,m}) - to make it more POSIX compliant. Added SilcStack support to - the regex too. Affected files are lib/silcutil/silcregex.[ch]. - - * Added silc_buffer_printf to lib/silcutil/silcbuffer.h. - - * Changed silc_srealloc to allocate new memory block if reallocation - from stack fails, and to copy the old data to the new one. - Affected files are lib/silcutil/silcmemory.[ch]. - -Tue Jan 1 19:40:15 EET 2008 Pekka Riikonen - - * Added SILC_REGEX_NOTBOL and SILC_REGEX_NOTEOL flags to - lib/silcutil/silcregex.[ch]. - -Tue Jan 1 18:00:47 EET 2008 Pekka Riikonen - - * Added silc_regex and silc_regex_buffer, routines that provide - convenient use of regular expressions. Affected files - are lib/silcutil/silcregex.[ch]. Deprecated the - silc_string_regex_match. Affected files are - lib/silcutil/silcstrutil.[ch]. - - * Added SILC_STR_REGEX macro to SILC Buffer Format API. It - provides powerful regular expression matching within the - SilcBuffer. Combined with SILC Buffer Format API it can turn - the API into a Stream Editor (sed) and Awk like, providing - powerful ways to match and edit the buffer in myriad of ways. - The SILC_STR_REGEX can also mimic the behavior of sed (match - and edit line by line). Affected files are - lib/silcutil/silcbuffmt.[ch], silctypes.h. - -Mon Dec 31 15:50:31 EET 2007 Pekka Riikonen - - * Added SILC_STR_OFFSET_START and SILC_STR_OFFSET_END to - lib/silcutil/silcbuffmt.[ch]. - -Mon Dec 31 01:30:17 EET 2007 Pekka Riikonen - - * Added SILC regular expression API to lib/silcutil/silcregex.[ch]. - -Sun Dec 30 14:35:33 EET 2007 Pekka Riikonen - - * Implemented asynchronous events to SILC Scheduler. Added - silc_schedule_task_add_event, silc_schedule_event_connect, - silc_schedule_event_dissconnect, silc_schedule_task_del_event - and silc_schedule_event_signal. Affected files are - lib/silcutil/silcschedule.[ch], silcschedule_i.h. - - * Added concept of child and parent scheduler to SILC Scheduler - API. silc_schedule_init now takes optional parent argument. - Each child scheduler is still independent, only the event tasks - are shared among parent and children. Affected files are - lib/silcutil/silcschedule.[ch]. - - * The SILC FSM real thread now adds the created SilcSchedule - as the thread's global scheduler. Affected file is - lib/silcutil/silcfsm.[ch]. - - * Moved generic string and data hashing and comparison functions - from lib/silcutil/silcutil.[ch] to lib/silcutil/silchashtable.[ch] - as they are usable by the hash table. Added case sensitive - and insensitive string hashing and comparison funtions. - Changed string and data hashing to use Bob Jenkin's one-at-a-time - hash function. - - * Moved SILC_PARAM_* types from silcbuffmt.h to silctypes.h - under a generic SilcParam type. Affected files are - lib/silcutil/silcbuffmt.[ch] and lib/silcutil/silctypes.h. - -Wed Dec 26 13:10:30 EET 2007 Pekka Riikonen - - * Added silc_schedule_[set|get]_global to - lib/silcutil/silcschedule.[ch]. - - * Changed many APIs to call silc_schedule_get_global if provided - scheduler argument is NULL. - -Tue Dec 25 18:44:27 EET 2007 Pekka Riikonen - - * silc_stack_alloc now automatically aligns the requested - stack size. Affected files are lib/silcutil/silcstack.[ch]. - -Tue Dec 25 13:53:07 EET 2007 Pekka Riikonen - - * Added silc_getopt to lib/silcutil/silcgetopt.[ch]. - -Sat Dec 22 19:55:28 EET 2007 Pekka Riikonen - - * Added SILC errno API to lib/silcutil/silcerrno.[ch]. Added - SilcResult, generic error code and return value type. Added - global silc_errno that returns last error in that thread. - - * Deprecated SilcSocketStreamStatus, SilcResult replaces it. - Backwards support remains. Affected files are - lib/silcutil/silcsocketstream.[ch]. - - * Deprecated SilcNetStatus, SilcResult replaces it. Backwards - support remains. Affected files are lib/silcutil/silcnet.[ch]. - - * Added errno setting to almost all Runtime Tooolkit routines - in error conditions. - -Sun Dec 16 16:18:04 EET 2007 Pekka Riikonen - - * Added SILC Bit Operations API to lib/silcutil/silcbitops.[ch]. - -Sat Dec 15 19:59:53 EET 2007 Pekka Riikonen - - * Added SILC Tls API for Thread-local storage in - lib/silcutil/silcthread.[ch]. Added all platform specific - implementations. Added SilcTls structure to - lib/silcutil/silcthread_i.h that is now in all threads' Tls. - -Thu Dec 13 17:37:21 EET 2007 Pekka Riikonen - - * Clear the locked flag before unlocking mutex, not after. - Affected files are lib/silcutil/unix/silcunixthread.c and - lib/silcutil/symbian/silcsymbianthread.c. - - * Fixed thread pool locking dealing with thread stopping to - prevent deadlocks and crashes. Affected file is - lib/silcutil/silcthread.c. - -Tue Nov 6 17:09:42 EET 2007 Pekka Riikonen - - * Added '%@' formatting to silc_snprintf and variants. It - can be used to render data and structures. Affected files - are lib/silcutil/silcsnprintf.[ch]. - -Sat Oct 27 18:12:40 EEST 2007 Pekka Riikonen - - * Added silc_net_tcp_create_listener2. Affected files are - lib/silcutil/silcnet.h and platform specific implementation. - -Sat Sep 1 12:09:32 EEST 2007 Pekka Riikonen - - * Rewrote parts of the SILC Atomic API to not use volatile - members in structures but to handle the memory accesses - volatily, the right way to do it. Affected file is - lib/silcutil/silcatomic.h. - - * Added silc_timer_tick and silc_timer_synchronize functions - to SILC Timer API. Affected files are - lib/silcutil/silctimer.[ch] and silctimer_i.h. - - * Use clock_gettime in place of gettimeofday, if it is - available. Affected files are configure.ad and - lib/silcutil/unix/silcunixutil.c. - - * Added silc_offsetof, silc_likely and silc_unlikely to public - API. Added silc_attribute compiler specific definition. - Affected file is lib/silcutil/silctypes.h. - - * Added silc_prefetch and silc_prefetch_block functions that - provide routines for prefetching data to CPU cache. Affected - file is lib/silcutil/silctypes.h. - - * Added --with-alignment for specifying default memory alignment - used in the compiled code. Currently only SilcStack respects - this value. Affected files are lib/configure.ad, - lib/silcutil/silcstack_i.h and includes/silc.h.in. - -Tue Aug 7 21:00:00 EEST 2007 Pekka Riikonen - - * Fixed alignment issues on 64-bit CPUs. Affected files are - lib/silcutil/silcschedule.c and unix/silcunixschedule.c. - -Sat Aug 4 19:09:14 EEST 2007 Pekka Riikonen - - * Added assembler optimized versions of SILC_[GET|PUT]XX_MSB - macros, and SILC_SWAB_XX macros. Added new functions - silc_rol, silc_ror, silc_rol64 and silc_ror64, all of which - have assembler optimizations also. Affected file is - lib/silcutil/silctypes.h. - -Thu Jul 26 18:13:59 EEST 2007 Pekka Riikonen - - * Changed thread pool call queues thread specific and changed - queues to be consumed in last-in-first-out order. These - are optimizations to the thread pool. Affected file is - lib/silcutil/silcthread.c. - -Wed Jul 25 19:32:41 EEST 2007 Pekka Riikonen - - * Added silc_mime_assembler_purge to lib/silcutil/silcmime.[ch] - to purge unfinished fragments from MIME assembler. - -Sat Jul 21 14:47:28 EEST 2007 Pekka Riikonen - - * Added silc_data2hex and silc_hex2data to - lib/silcutil/silcutil.[ch]. - -Thu Jul 19 17:07:02 EEST 2007 Pekka Riikonen - - * Added silc_buffer_strchr to lib/silcutil/silcbuffer.h. - -Tue Jul 17 20:10:41 EEST 2007 Pekka Riikonen - - * Added silc_hexdump to lib/silcutil/silcutil.[ch]. - -Fri Jul 13 23:01:45 EEST 2007 Pekka Riikonen - - * Added SILC_GET32_X_MSB macro to lib/silcutil/silctypes.h. - -Wed Jul 11 17:10:11 EEST 2007 Pekka Riikonen - - * Added SILC Timer API to lib/silcutil/silctimer.[ch], - silctimer_i.h, tests/test_silctimer.c. - -Tue Jul 10 20:02:04 EEST 2007 Pekka Riikonen - - * Added queue entry free list to thread pool instead of - allocating new entry everytime new entry is needed. Affected - file is lib/silcutil/silcthread.c. - -Mon Jul 9 20:21:13 EEST 2007 Pekka Riikonen - - * Changed thread pool completion callback to SilcTaskCallback so - that it can be given directly to destination scheduler. - Affected files are lib/silcutil/silcthread.[ch]. - -Sun Jul 8 20:20:22 EEST 2007 Pekka Riikonen - - * Moved Base64 routines to lib/silcutil/silcbase64.[ch]. Added - SilcStack support to the API. - - * Inherit the lock from parent in SilcStack child. If child - doesn't find stack blocks, check from parent. Added - silc_stack_purge. Affected file is lib/silcutil/silcstack.c. - -Wed Jul 4 20:20:05 EEST 2007 Pekka Riikonen - - * Unified the SILC_STR_FUNC callback. Affected files are - lib/silcutil/silcbuffmt.[ch]. - - * Added SilcStack support to SILC File Util API. Affected files - are lib/silcutil/silcfileutil.[ch]. - - * Added SilcStack support to SILC FD Stream API. Affected files - are lib/silcutil/silcfdstream.[ch]. - - * Added SilcStack support to SILC Scheduler API. The scheduler - now creates stack always. It can be retrieved by - silc_schedule_get_stack. Affected files are - lib/silcutil/silcschedule.[ch], silcschedule_i.h. - - * Added SilcStack child creation and use multi-thread support. - Added OOM handler, silc_stack_set_oom_handler. Affected - files are lib/silcutil/silcstack.[ch]. - -Tue Jul 3 22:45:56 EEST 2007 Pekka Riikonen - - * Added concept of child stacks to SilcStack, allowing to create - true memory pools using SilcStack. It is now possible to - create childs from the parent, without consuming the parent's - memory. The child's memory is returned back to parent when - it is freed. Affected files are lib/silcutil/silcstack.[ch], - silcstack_i.h. - -Tue Jul 3 18:17:54 EEST 2007 Pekka Riikonen - - * Added SILC DLL API for loading and using shared objects and - DLLs. Affected files are lib/silcutil/sildll.[ch]. Added - also test program lib/silcutil/tests/test_silcdll.c. - - * Added SILC Environment manipulation API to - lib/silcutil/silcenv.[ch] and test program to - lib/silcutil/tests/test_silcenv.c. - - * Renamed silc_hash_table_replace to silc_hash_table_set. - Added SilcStack support to SilcHashTable. Affected files are - lib/silcutil/silchashtable.[ch]. - - * Added SilcStack support to SilcDList. Added new function - silc_dlist_sinit. Affected file is lib/silcutil/silcdlist.h. - -Mon Jul 2 21:07:34 EEST 2007 Pekka Riikonen - - * Removed unaligned memory allocation from SilcStack. Moved - silc_stack_malloc and silc_stack_realloc to public API from - private API. Added silc_stack_[set|get]_alignment that is - used to get/set memory alignment with SilcStack. Affected - files are lib/silcutil/silcstack.[ch], silcstack_i.h. - - * Added silc_sfree to lib/silcutil/silcmemory.[ch]. - - * Removed silc_smalloc_ua and silc_srealloc_ua. Affected files - are lib/silcutil/silcmemory.[ch]. - -Mon Jul 2 17:13:51 EEST 2007 Pekka Riikonen - - * Added SILC Thread Pool API to lib/silcutil/silcthread.[ch], - and test program in lib/silcutil/tests/test_silcthread.c. - ------------------------------------------------------------------------------ - -For older changes please see the CHANGES file from the CVS tree. diff --git a/README.CVS b/README.GIT similarity index 100% rename from README.CVS rename to README.GIT diff --git a/TODO b/TODO index 9ae27025..e24199ce 100644 --- a/TODO +++ b/TODO @@ -11,33 +11,6 @@ on some of the TODO entries simply let us know about it by dropping a note to silc-devel mailing list or appear on 'silc' channel on SILCNet. -General -======= - - o Create apps/tutorial containing various Toolkit API tutorials. - - o The Toolkit split. The Toolkit is to be splitted in parts. How many - parts and what the parts are isn't decided yet. Each part is a separate - software package. Current thinking is of the following: - - SILC Toolkit SILC protocol, client and server library - SILC Runtime Toolkit runtime library - SILC Crypto Toolkit crypto, asn1, math, skr, pgp, etc. - - The rationale for this is of course that other than SILC projects - might like to use the various libraries SILC Toolkit provides, but - naturally they don't want the bloat of SILC protocol related stuff. - - The Runtime library in SILC Toolkit is a general purpose runtime library, - like Glib and APR are. The runtime library is to be developed further - to provide alternative to Glib and APR. - - The Crypto library in SILC Toolkit is a general purpose crypto library - providing pretty nice APIs compared to many other crypto libraries, - especially OpenSSL. The Crypto library is to be developed further - to include support for OpenPGP, X.509 and SSH2. - - lib/silccore ============ @@ -90,129 +63,6 @@ lib/silcclient, The Client Library o Ability to recover from rekey errors, at least try to. -Runtime library, lib/silcutil/ -============================== - - o silc_malloc et. al. to respect --with-alignment. - - o Fix universal time decoding (doesn't accept all formats) in silctime.c. - - o Additional scheduler changes: optimize silc_schedule_wakeup. Wakeup - only if the scheduler is actually waiting something. If it is - delivering tasks wakeup is not needed. - - o silc_stringprep to non-allocating version. - - o Add builtin SOCKS and HTTP Proxy support, well the SOCKS at least. - SILC currently supports SOCKS4 and SOCKS5 but it needs to be compiled - in separately. - - o Add directory opening/traversing functions (***DONE, TODO Windows & Symbian) - - o regex from /lib/contrib to lib/silcutil, define SILC Regex API. (***DONE) - - o Add functions to manipulate environment variables. (***DONE) - - o Add functions to loading shared/dynamic object symbols (replaces the - SIM library (lib/silcsim) and introduces generic library). Add this - to lib/silcutil/silcdll.[ch]. (***TESTING NEEDED WIN32, TODO Symbian) - - o silc_getopt routines (***DONE) - - o The SILC Event signals. Asynchronous events that can be created, - connected to and signalled. Either own event routines or glued into - SilcSchedule. (***DONE) - - o If the event signals are added, the SILC_PARAM_* stuff needs to be - moved from silcbuffmt.h to silctypes.h or something similar. (***DONE) - - o In case the SILC Events are done we shall create a new concept of - parent and child SilcSchedule's. When new SilcSchedule is created a - parent can be associated to it. This association could be done either - directly by the parent or by any other children. This way the signals - would in effect be global and would reach all children schedulers. - - This relationship would be associative only. The schedulers are still - independent and run independently from each other. All schedulers - would be linked and could be accessed from any of the schedulers. - It should be possible to retrieve the parent and enumerate all children - from any of the schedulers. - (***DONE) - - o Base64 to an own API (***DONE) - - o Timer API (***DONE) - - o silc_hash_table_replace -> silc_hash_table_set. Retain support for - silc_hash_table_replace as macro. (***DONE) - - o SilcStack aware SilcHashTable. (***DONE) - - o SilcStack aware SilcDList. (***DONE) - - o Thread pool API. Add this to lib/silcutil/silcthread.[ch]. (***DONE) - - o Add new functions to SilcStack API in lib/silcutil/silcstack.[ch]. Add - silc_stack_[set|get]_alignment. It defines the default alignment used - when allocating memory from stack. It can be used to specify special - alignments too when needed (such as for hardware devices like crypto - accelerators). Move also the low level silc_stack_malloc and - silc_stack_realloc from silcstack_i.h to silcstack.h. Remove the - _ua unaligned memory allocation routines. Remove unaligned memory - allocation possibility. (***DONE) - - o silc_stack_alloc shouldn't require multiple by 8 size argument, it - should figure it out itself. (***DONE) - - o Add '%@' format to silc_snprintf functions. - (***DONE) - - o SILC Tls (Thread-local storage) API to lib/silcutil/silcthread.[ch]. - (***DONE) - - o Change silc_gettimeofday on Unix to use clock_gettime with REALTIME - clock if it is available, otherwise use gettimeofday(). (***DONE) - - o Generic SilcResult that includes all possible status and - error conditions and generic errno API. (***DONE) - - (o Structured log messages to Log API. Allows machine readable log - messages. Would allow sending of any kind of data in a log message.) maybe - - (o Change some stream routines (like socket stream API) to accept ANY - stream and use silc_stream_get_root to get the socket stream from the - given stream. This will make various stream APIs more easier to use - when user doesn't have to dig up the correct stream. - - Add silc_stream_get_root and add get_root stream operation. It - returns the root of the stream or NULL if stream doesn't have root.) maybe - - (o Compression routines are missing. The protocol supports packet - compression thus it must be implemented. SILC Zip API must be - defined.) maybe - - (o SilcIpAddr abstraction. Ipv4 and Ipv6 support to the abstaction.) - maybe - - (o SILC specific socket creation/closing routines to silcnet.h, wrappers - to all send(), recv(), sendto() etc. Bad thing is that we'd have to - define all socket options, sockaddrs, etc.) maybe - - (o Fast mutex implementation. Fast rwlock implementation. Mutex and - rwlock implementation using atomic operations.) not for now. - - (o mmap) maybe - - -lib/silcutil/symbian/ -===================== - - o Something needs to be thought to the logging globals as well, - like silc_debug etc. They won't work on EPOC. Perhaps logging - and debugging is to be disabled on EPOC. The logging currently works - by it cannot be controlled, same with debugging. - - SFTP Library, lib/silcsftp/ =========================== @@ -220,224 +70,12 @@ SFTP Library, lib/silcsftp/ be done easily. -SKR Library, lib/silcskr/ -========================= - - o Add fingerprint as search constraint. - - o Add OpenPGP support. Adding, removing, fetching PGP keys. (Keyring - support?) - - o Add support for importing public keys from a directory and/or from a - file. Add support for exporting the repository (different formats for - different key types?). - - o Change the entire silc_skr_find API. Remove SilcSKRFind and just simply - add the find constraints as variable argument list to silc_skr_find, eg: - - silc_skr_find(skr, schedule, callback, context, - SILC_SKR_FIND_PUBLIC_KEY, public_key, - SILC_SKR_FIND_COUNTRY, "FI", - SILC_SKR_FIND_USAGE, SILC_SKR_USAGE_AUTH, - SILC_SKR_FIND_END); - - NULL argument would be ignored and skipped. - - o Add OR logical rule in addition of the current default AND, eg: - - // Found key(s) MUST have this public key AND this country. - silc_skr_find(skr, schedule, callback, context, - SILC_SKR_FIND_RULE_AND, - SILC_SKR_FIND_PUBLIC_KEY, public_key, - SILC_SKR_FIND_COUNTRY, "FI", - SILC_SKR_FIND_END); - - // Found key(s) MUST have this public key OR this key context - silc_skr_find(skr, schedule, callback, context, - SILC_SKR_FIND_RULE_OR, - SILC_SKR_FIND_PUBLIC_KEY, public_key, - SILC_SKR_FIND_CONTEXT, key_context, - SILC_SKR_FIND_END); - - o SilcStack to SKR API. - - -Crypto Library, lib/silccrypt/ -============================== - - o Add silc_crypto_init and silc_crypto_uninit. The _init should take - SilcStack that will act as global memory pool for all of crypto - library. It should not be necessary anymore to separately register - default ciphers, HMACs, etc, the _init would do that. However, if - user after _init calls silc_pkcs_register, for example, it would take - preference over the default once, ie. user can always dictate the - order of algorithms. (***DONE) - - o Add fingerprint to SilcSILCPublicKey and retrieval to silcpk.h, and - possibly to silcpkcs.h. - - /* Return fingerprint of the `public_key'. Returns also the algorithm - that has been used to make the fingerprint. */ - const unsigned char * - silc_pkcs_get_fingerprint(SilcPublicKey public_key, - const char **hash_algorithm, - SilcUInt32 *fingerprint_len); - - o Change SILC PKCS API to asynchronous, so that accelerators can be used. - All PKCS routines should now take callbacks as argument and they should - be delivered to SilcPKCSObject and SilcPKCSAlgorithm too. (***DONE) - - o The asynchronous functions to perhaps to _async to preserve backwards - compatibility with synchronous versions, and make easier to migrate - from 1.1 to 1.2. - - o Change PKCS Algorithm API to take SilcPKCSAlgorithm as argument to - encrypt, decrypt, sign and verify functions. We may need to for exmaple - check the alg->hash, supported hash functions. Maybe deliver it also - to all other functions in SilcPKCSAlgorithm to be consistent. (***DONE) - - o Add DSA support to SILC public key. - - o Add DSS support. (***DONE) - - o Implement the defined SilcDH API. The definition is in - lib/silccrypt/silcdh.h. Make sure it is asynchronous so that it can - be accelerated. Also take into account that it could use elliptic - curves. - - o Add ECDSA support. - - o Add ECDH support. - - o AES CBC is missing proper alignment code (see silc_1_1_branch). - - o All cipher, hash, hmac etc. allocation routines should take their name - in as const char * not const unsigned char *. (***DONE) - - -SILC Accelerator Library -======================== - - o SILC Accelerator API. Provides generic way to use different kind of - accelerators. Basically implements SILC PKCS API so that SilcPublicKey - and SilcPrivateKey can be used but they call the accelerators. - (***DONE) - - o Implement software accelerator. It is a thread pool system where the - public key and private key operations are executed in threads. - (***DONE) - - o Add init options to SilcAcceleratorObject as a SilcAcceleratorOption - structure. Each accelerator defines the options that they support and - can be retrieved from the SilcAccelerator with silc_acc_get_options. - The format must also be machine parseable. The structure can be of the - following format: - - typedef struct SilcAcceleratorOptionStruct { - const char *option; /* Option name */ - const char *display_name; /* Option displayable name */ - SilcParamType type; /* Option data format */ - void *default_value; /* Option's default value */ - SilcUInt32 default_value_len; /* Default value length */ - } *SilcAcceleratorOption; - - For software accelerator it could be for example: - - { "min_threads", "Minimum threads", SILC_PARAM_UINT32, (void *)2, 4 }, - { "max_threads", "Maximum threads", SILC_PARAM_UINT32, (void *)4, 4 }, - - o Diffie-Hellman acceleration - - (o Symmetric key cryptosystem acceleration? They are always sycnhronouos - even with hardware acceleration so the crypto API shouldn't require - changes.) maybe - - -lib/silcmath -============ - - o Import TFM. We want TFM's speed but its memory requirements are - just too much. By default it uses large pre-allocated tables which - will eat memory when there are thousands of public keys in system. - We probably want to change TFM's fp_int dynamic so that a specific - size can be allocated for the int. We could have two new functions: - - SilcBool silc_mp_init_size(SilcMPInt *mp, SilcUInt32 bit_size); - SilcBool silc_mp_sinit_size(SilcStack stack, SilcMPInt *mp, - SilcUInt32 bit_size); - - Which by default allocates `bit_size' bits instead of some default - value. silc_mp_init would allocate the default FP_SIZE with TFM - and do normal init with TMA and GMP. _init_size with TMA and GMP - would be same as _init. - - o Add AND, OR and XOR support to TFM or ask Tom to do it. - - o The SILC MP API function must start returning indication of success - and failure of the operation. - - o Do SilcStack support for silc_mp_init, silc_mp_init_size and other - any other MP function (including utility ones) that may allocate - memory. - - o Prime generation progress using callback instead of printing to - stdout. - - o All utility functions should be made non-allocating ones. - - -SILC XML Library, lib/silcxml/ -============================== - - o SILC XML API (wrapper to expat). Look at the expat API and simplify - it. The SILC XML API should have at most 8-10 API functions. It should - be possible to create full XML parser with only one function. And, it - should be possible to have a function that is able to parse an entire - XML document. It should also have a parser function to be able to - parse a stream of XML data (SilcStream). It MUST NOT have operations - that require multiple function calls to be able to execute that one - operation (like creating parser). - - lib/silcske/silcske.[ch] ======================== o Ratelimit to UDP/IP transport for incoming packets. -lib/silcasn1 -============ - - o Negative integer encoding is missing, add it. - - o SILC_ASN1_CHOICE should perhaps return an index what choice in the - choice list was found. Currently it is left for caller to figure out - which choice was found. (***DONE) - - o SILC_ASN1_NULL in decoding should return SilcBool whether or not - the NULL was present. It's important when it's SILC_ASN1_OPTIONAL - and we need to know whether it was present or not. (***DONE) - - -lib/silcpgp -=========== - - o OpenPGP certificate support, allowing the use of PGP public keys. - - -lib/silcssh -=========== - - o SSH2 public key/private key support, allowing the use of SSH2 keys. - RFC 4716. (***DONE) - - -lib/silcpkix -============ - - o PKIX implementation - - apps/silcd ========== diff --git a/TODO-SILC b/TODO-SILC index 164bb41f..2ce1eb7a 100644 --- a/TODO-SILC +++ b/TODO-SILC @@ -15,7 +15,7 @@ point. names in all commands and notify types. o Add acknowlegments section to specification documents. - + o Group Diffie-Hellman protocol for establishig key with two or more users on a channel. @@ -29,15 +29,17 @@ point. to Truncated HASH from SKE (4 bytes) - This value is the first 4 - bytes from the HASH value that was computed in SKE. In each rekey + bytes from the HASH value that was computed in SKE. In each rekey the value MUST be recomputed as follows: HASH = hash(new Sending/Receiving IV from SKE) - The hash function is the one used in SKE. The 'new Sending/Receiving - IV from SKE' is the first 8 bytes of the new value computed during + The hash function is the one used in SKE. The 'new Sending/Receiving + IV from SKE' is the first 8 bytes of the new value computed during rekey. The first 4 bytes are used from the recomputed HASH. + o Consider for future authenticated encryption modes, especially GCM. + o Extend the Channel ID port to be actually a counter, allowing the 2^32 channels per cell, instead of 2^16 like now. The port with compliant implementation would always be 706, and it could be used @@ -54,12 +56,12 @@ point. o Define clearly the SSH2 signature format is the one specified for SSH2 protocol. - o Dynamic server and router connections, ala Jabber. SILC has allowed + o Dynamic server and router connections, ala Jabber. SILC has allowed this from the beginning. It should be written out clearly in the specs. Connection would be created with nick strings (which are of format nick@server). - o NAT detection protocool during SKE so that party behind NAT can + o NAT detection protocool during SKE so that party behind NAT can detect if it is behind NAT and receive the public IP address and port that it may need (servers need it to create valid Server ID). (***DONE) @@ -73,7 +75,7 @@ point. o Add Source and Destination ID in message MAC computation to fully associate the Message Payload with the true sender and the true recipient of the message. This will fix some security issues that - currently exists. It is currently possible in some specific set of + currently exists. It is currently possible in some specific set of conditions to mount a replay attack using Message Payload. This change will remove the possibility of these attacks. @@ -87,12 +89,12 @@ point. has changed nickname, has detached and resumed, or has reconnected to other server. 4. the original receiver of the message is still in the network, has - not changed nickname, has not detached and resumed, and has not + not changed nickname, has not detached and resumed, and has not reconnected to any other server, or, some other user has the same client ID. - 5. the attacker is able to get the same client ID as the original + 5. the attacker is able to get the same client ID as the original sender. - 6. the original receiver still has the static key set for the same + 6. the original receiver still has the static key set for the same remote client ID (for original sender's client ID). All this is possible to happen though likelyhood is quite small. It @@ -100,7 +102,7 @@ point. o The SILC public key identifier separator is ', ' not ','. The whitespace is mandatory. (***DONE) - + o Definition of EAP as new authentication method for connection auth protocol (RFC 3748). @@ -114,5 +116,3 @@ point. silc-users. (This is very old issue) o The time values in STATS is 32-bits. After 2038 it's over 32-bits. - - o Consider for future authenticated encryption modes. diff --git a/apps/asn1utils/Makefile.am b/apps/asn1utils/Makefile.am deleted file mode 100644 index b097dd12..00000000 --- a/apps/asn1utils/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -# -# Makefile.am -# -# Author: Pekka Riikonen -# -# Copyright (C) 2007 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; version 2 of the License. -# -# 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. -# - -AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign - -bin_PROGRAMS = asn1dump -asn1dump_SOURCES = asn1dump.c - -LIBS = $(SILC_COMMON_LIBS) - -include $(top_srcdir)/Makefile.defines.in diff --git a/apps/asn1utils/asn1dump.c b/apps/asn1utils/asn1dump.c deleted file mode 100644 index 4c783752..00000000 --- a/apps/asn1utils/asn1dump.c +++ /dev/null @@ -1,309 +0,0 @@ -/* - - asn1dump.c - - Author: Pekka Riikonen - - Copyright (C) 2007 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; version 2 of the License. - - 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. - -*/ - -#include "silc.h" - -SilcBool hexdump = FALSE; -SilcBool dec_base64 = FALSE; -SilcBool parse_all = FALSE; -SilcBool ignore_header = FALSE; - -const char *asn1_tag_name(SilcAsn1Tag tag) -{ - switch (tag) { - case SILC_ASN1_TAG_CHOICE: - return "choice"; - case SILC_ASN1_TAG_ANY: - return "any"; - case SILC_ASN1_TAG_ANY_PRIMITIVE: - return "any primitive"; - case SILC_ASN1_TAG_SEQUENCE_OF: - return "sequence of"; - case SILC_ASN1_TAG_SEQUENCE: - return "sequence"; - case SILC_ASN1_TAG_SET: - return "set"; - case SILC_ASN1_TAG_INTEGER: - return "integer"; - case SILC_ASN1_TAG_SHORT_INTEGER: - return "short integer"; - case SILC_ASN1_TAG_OID: - return "oid"; - case SILC_ASN1_TAG_BOOLEAN: - return "boolean"; - case SILC_ASN1_TAG_OCTET_STRING: - return "octet-string"; - case SILC_ASN1_TAG_BIT_STRING: - return "bit-string"; - case SILC_ASN1_TAG_NULL: - return "null"; - case SILC_ASN1_TAG_ENUM: - return "enum"; - case SILC_ASN1_TAG_UTC_TIME: - return "utc-time"; - case SILC_ASN1_TAG_GENERALIZED_TIME: - return "generalized-time"; - case SILC_ASN1_TAG_UTF8_STRING: - return "utf8-string"; - case SILC_ASN1_TAG_NUMERIC_STRING: - return "numeric-string"; - case SILC_ASN1_TAG_PRINTABLE_STRING: - return "printable-string"; - case SILC_ASN1_TAG_IA5_STRING: - return "ia5-string"; - case SILC_ASN1_TAG_VISIBLE_STRING: - return "visible-string"; - case SILC_ASN1_TAG_UNIVERSAL_STRING: - return "universal-string"; - case SILC_ASN1_TAG_UNRESTRICTED_STRING: - return "unrestricted-string"; - case SILC_ASN1_TAG_BMP_STRING: - return "bmp-string"; - case SILC_ASN1_TAG_ODE: - return "ode"; - case SILC_ASN1_TAG_ETI: - return "eti"; - case SILC_ASN1_TAG_REAL: - return "real"; - case SILC_ASN1_TAG_EMBEDDED: - return "embedded"; - case SILC_ASN1_TAG_ROI: - return "roi"; - case SILC_ASN1_TAG_TELETEX_STRING: - return "teletex-string"; - case SILC_ASN1_TAG_VIDEOTEX_STRING: - return "videotex-string"; - case SILC_ASN1_TAG_GRAPHIC_STRING: - return "graphic-string"; - case SILC_ASN1_TAG_GENERAL_STRING: - return "general-string"; - default: - break; - } - return "unknown"; -} - -int asn1_dump(SilcAsn1 asn1, SilcBuffer src, int depth) -{ - SilcBool ret = FALSE; - SilcBerEncoding renc; - SilcUInt32 rtag; - const unsigned char *rdata; - SilcBufferStruct buf; - SilcBerClass rclass; - SilcUInt32 rdata_len, len = 0; - SilcBool rindef; - char indent[256]; - - memset(indent, 0, sizeof(indent)); - - while (silc_buffer_len(src)) { - /* Decode the BER block */ - ret = silc_ber_decode(src, &rclass, &renc, &rtag, &rdata, - &rdata_len, &rindef, &len); - if (!ret) { - fprintf(stderr, "Error: Cannot parse BER block, malformed ASN.1 data\n"); - return -1; - } - - /* If class is 0, encoding 0, tag 0 and data length 0 ignore them - as they are zero bytes, unless user wants to see them */ - if (rclass == 0 && renc == 0 && rtag == 0 && rdata_len == 0 && - !parse_all) { - if (len && silc_buffer_len(src) >= len) - silc_buffer_pull(src, len); - continue; - } - - if (depth) - memset(indent, 32, depth); - - fprintf(stdout, "%04d: %s%s [%d] %s %s %s", depth, indent, - asn1_tag_name(rtag), (int)rtag, - rclass == SILC_BER_CLASS_UNIVERSAL ? "univ" : - rclass == SILC_BER_CLASS_APPLICATION ? "appl" : - rclass == SILC_BER_CLASS_CONTEXT ? "cont" : "priv", - renc == SILC_BER_ENC_PRIMITIVE ? "primit" : "constr", - rindef ? "indef" : "defin"); - - if (rtag != SILC_ASN1_TAG_SEQUENCE && - rtag != SILC_ASN1_TAG_SET && - rtag != SILC_ASN1_TAG_SEQUENCE_OF) { - if (hexdump) { - fprintf(stdout, " [len %lu]\n", rdata_len); - silc_hexdump(rdata, rdata_len, stdout); - } else { - fprintf(stdout, "\n"); - } - } else { - fprintf(stdout, "\n"); - } - - if (renc == SILC_BER_ENC_PRIMITIVE) - len = len + rdata_len; - else - len = len; - - if (len && silc_buffer_len(src) >= len) - silc_buffer_pull(src, len); - - /* Decode sequences and sets recursively */ - if ((rtag == SILC_ASN1_TAG_SEQUENCE || - rtag == SILC_ASN1_TAG_SET || - rtag == SILC_ASN1_TAG_SEQUENCE_OF) && - depth + 1 < sizeof(indent) - 1) { - silc_buffer_set(&buf, (unsigned char *)rdata, rdata_len); - if (silc_buffer_len(src) >= rdata_len) - silc_buffer_pull(src, rdata_len); - if (asn1_dump(asn1, &buf, depth + 1) < 0) - return -1; - if (silc_buffer_len(src) == 0) - return 0; - } - } - - return 0; -} - -void usage(void) -{ - fprintf(stdout, "" -"Usage: asn1dump [OPTIONS] FILE\n" -"\n" -"Operation modes:\n" -" -h Print this help, then exit\n" -" -x HEX dump ASN.1 data\n" -" -b Remove Base64 encoding before parsing\n" -" -i Remove file header/footer that has at least four '-' characters\n" -" -a Parse all data, including possible trailing zeroes\n" -"\n" -"ASN.1 classes:\n" -" univ Universal\n" -" appl Application\n" -" cont Context\n" -" priv Private\n" -"\n" -"ASN.1 length types:\n" -" defin Definitive\n" -" indef Indefinitive\n" -"\n" -"ASN.1 encoding types:\n" -" primit Primitive\n" -" constr Constructed\n" -"\n" - ); -} - -int main(int argc, char **argv) -{ - int opt, ret, i; - SilcAsn1 asn1; - SilcBufferStruct buf; - unsigned char *data, *tmp; - SilcUInt32 data_len; - - if (argc < 2) { - usage(); - return 1; - } - - while ((opt = getopt(argc, argv, "hxbai")) != EOF) { - switch (opt) { - case 'h': - usage(); - return 1; - break; - - case 'x': - hexdump = TRUE; - break; - - case 'b': - dec_base64 = TRUE; - break; - - case 'i': - ignore_header = TRUE; - break; - - case 'a': - parse_all = TRUE; - break; - - default: - usage(); - return 1; - } - } - - data = tmp = silc_file_readfile(argv[argc - 1], &data_len, NULL); - if (!data) { - fprintf(stderr, "Error: Cannot read file '%s': %s\n", argv[argc - 1], - strerror(errno)); - return 1; - } - - silc_buffer_set(&buf, data, data_len); - - if (ignore_header) { - SilcBool header = FALSE; - for (i = 0; i < data_len; i++) { - if (data_len > i + 4 && - data[i ] == '-' && data[i + 1] == '-' && - data[i + 2] == '-' && data[i + 3] == '-') { - - if (data_len > i + 5 && (data[i + 4] == '\r' || - tmp[i + 4] == '\n')) { - /* End of line, header */ - if (data_len > i + 6 && data[i + 4] == '\r' && - data[i + 5] == '\n') - i++; - i += 5; - silc_buffer_pull(&buf, i); - header = TRUE; - } else if (i > 0 && data_len > i + 5 && data[i + 4] != '-' && - header) { - /* Start of line, footer */ - silc_buffer_push_tail(&buf, silc_buffer_truelen(&buf) - i); - break; - } - } - } - } - - if (dec_base64) { - data = silc_base64_decode(NULL, silc_buffer_data(&buf), - silc_buffer_len(&buf), &data_len); - if (!data) { - fprintf(stderr, "Error: Cannot decode Base64 encoding\n"); - return 1; - } - silc_buffer_set(&buf, data, data_len); - silc_free(tmp); - } - - asn1 = silc_asn1_alloc(NULL); - - ret = asn1_dump(asn1, &buf, 0); - - silc_asn1_free(asn1); - silc_free(data); - - return ret; -} diff --git a/apps/asn1utils/configure.ad b/apps/asn1utils/configure.ad deleted file mode 100644 index 5458a0aa..00000000 --- a/apps/asn1utils/configure.ad +++ /dev/null @@ -1,24 +0,0 @@ -#ifdef SILC_DIST_ASN1UTILS -# -# apps/asn1utils/configure.ad -# -# Author: Pekka Riikonen -# -# Copyright (C) 2007 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; version 2 of the License. -# -# 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. -# - -AC_CONFIG_FILES( -apps/asn1utils/Makefile -) - -AC_SUBST(SILCD_SUBDIR) -#endif SILC_DIST_ASN1UTILS diff --git a/apps/autodist/AUTHORS b/apps/autodist/AUTHORS deleted file mode 100644 index 99141c09..00000000 --- a/apps/autodist/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -Authors of SILC Autodist. - -Pekka Riikonen diff --git a/apps/autodist/CHANGES b/apps/autodist/CHANGES deleted file mode 100644 index c5468f85..00000000 --- a/apps/autodist/CHANGES +++ /dev/null @@ -1,141 +0,0 @@ -Wed Jan 16 17:17:41 EET 2008 Pekka Riikonen - - * Fixed *.ad (excluding configure.ad and Makefile.ad files) - processing to correctly copy the processed file to new name. - -Thu Sep 13 18:50:00 EEST 2007 Pekka Riikonen - - * Fixed prerequisite version checking to work on all shells. - - * Fixed parameter shifting on some shells when no arguments - are given to autodist. - - * Added support for source file distdef processing for the - following files: .mm .M .S - -Thu May 31 23:34:00 EEST 2007 Pekka Riikonen - - * Autodist 1.3.2. - - * Added 'prereq' directive to support encforcment of Autodist - version. - - * Added support for providing extra parameters to autodist that - are passed to the hook scripts. User can specify whatever - extra parameter they want. - -Wed Feb 21 15:45:50 EET 2007 Pekka Riikonen - - * Autodist 1.3.1. - -Sat Jun 24 23:38:24 EEST 2006 Pekka Riikonen - - * Match distdef names exactly (/^foo$/ instead of /^foo/). - -Wed May 4 10:58:24 EEST 2005 Pekka Riikonen - - * Autodist 1.3. - -Sun May 1 17:31:55 EEST 2005 Pekka Riikonen - - * Added support for dependencies in makefiles. - - * Added AD_DISABLE_DEPENDENCIES macro to disable Autodist - dependencies in makefiles. Added support for dependencies - in makefiles. - - * Added -p option to Autodist. It can be used to a process file - from the command line. - - * Added dependency support for configure.ad files as well. - -Sat Apr 30 17:49:05 EEST 2005 Pekka Riikonen - - * The 'noprocess' directive now works recursively with - directories. - -Sat Apr 30 11:49:01 EEST 2005 Pekka Riikonen - - * Added better debug messages. - - * Added log file creation, autodist.log and makedist.log. - - * Fixed license-header to change license only during packaging, - not also during preparation. - - * Fixed .ad processing when the file was not processed, to - copy the original to new name. - - * Fixed 'include' when copying directories to root of the - distdir, and the destination directory already exist. - -Fri Apr 29 16:48:16 EEST 2005 Pekka Riikonen - - * Fixed configure.ac creation when no fragments in use. - -Thu Apr 28 11:44:59 EEST 2005 Pekka Riikonen - - * The '.in' suffix with source file suffixes expects source code - format for the distdefs. - -Sun Apr 24 21:11:49 EEST 2005 Pekka Riikonen - - * Fixed undefining to actually work. - - * The top distribution now takes precedence on defined - distdefs over inherited distributions, and can override - defined and undefined distdefs (previously it could only - undefine defined but not define specificly undefined :)). - - * Prettier distdef output with -s. - -Sat Apr 23 12:49:09 EEST 2005 Pekka Riikonen - - * Autodist 1.2.1. - - * Fixed 'noprocess' sed script. - -Fri Apr 22 20:23:06 EEST 2005 Pekka Riikonen - - * Autodist 1.2. - - * Various 'cat' optimizations. - - * More test cases in tests/. - - * No Autodist header for "other" '.ad' files as we don't know - what the file contains. - - * No non-source distdef format processing for source files - anymore. - -Tue Apr 19 17:12:09 EEST 2005 Pekka Riikonen - - * Remove extra ' ' and '\t' when joining backslashed lines. - - * Fixed argument delivery to hook scripts. - -Mon Apr 18 21:05:42 EEST 2005 Pekka Riikonen - - * Process '*.ad' files before calling autoconf and automake. - - * Various shell compatibility kludges added. - -Mon Apr 18 20:06:24 EEST 2005 Pekka Riikonen - - * Autodist 1.1. - - * All 'local' variables must be at the start of function for - compatibility. - -Sun Apr 17 20:08:28 EEST 2005 Pekka Riikonen - - * Added TODO. - - * Added pre-process-dist-hook and post-process-dist-hook. - - * Added autodist.1. - -Sun Apr 16 23:00:02 EEST 2005 Pekka Riikonen - - * First release, Autodist 1.0. diff --git a/apps/autodist/COPYING b/apps/autodist/COPYING deleted file mode 100644 index 53293212..00000000 --- a/apps/autodist/COPYING +++ /dev/null @@ -1,25 +0,0 @@ - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote - products derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/apps/autodist/INSTALL b/apps/autodist/INSTALL deleted file mode 100644 index 56b077d6..00000000 --- a/apps/autodist/INSTALL +++ /dev/null @@ -1,236 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PREFIX', the package will -use PREFIX as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the `--target=TYPE' option to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - diff --git a/apps/autodist/Makefile.am b/apps/autodist/Makefile.am deleted file mode 100644 index c9d8c9ae..00000000 --- a/apps/autodist/Makefile.am +++ /dev/null @@ -1,49 +0,0 @@ -# -# Makefile.am -# -# Author: Pekka Riikonen -# -# Copyright (C) 2005 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; version 2 of the License. -# -# 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. -# - -AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign - -SUBDIRS = . doc tests - -AUTODIST_SOURCE = autodist.in makedist.in -bin_SCRIPTS = autodist makedist - -autodistdir = @AUTODISTDIR@ -autodist_DATA = autodist.conf default COPYING - -CLEANFILES = $(bin_SCRIPTS) - -APIVERSION = @APIVERSION@ -# Install versioned links. -install-exec-hook: - @for i in $(bin_SCRIPTS); do \ - f="`echo $$i | sed '$(transform)'`"; \ - fv="$$f-$(APIVERSION)"; \ - rm -f $(DESTDIR)$(bindir)/$$fv; \ - chmod +x $(DESTDIR)$(bindir)/$$f; \ - chmod a-w $(DESTDIR)$(bindir)/$$f; \ - ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \ - done - -uninstall-hook: - @for i in $(bin_SCRIPTS); do \ - f="`echo $$i|sed '$(transform)'`"; \ - fv="$$f-$(APIVERSION)"; \ - rm -f $(DESTDIR)$(bindir)/$$fv; \ - done - -EXTRA_DIST = $(AUTODIST_SOURCE) default autodist.conf diff --git a/apps/autodist/README b/apps/autodist/README deleted file mode 100644 index e9545994..00000000 --- a/apps/autodist/README +++ /dev/null @@ -1,49 +0,0 @@ -Autodist - -The Autodist is a source distribution management system that allows -powerful mechanisms to define what is included in and excluded from a -distribution, and what license the distribution is released under. It is -also used to create the actual distribution source packages. Autodist -allows distribution management in file, directory and file content level. -Different distributions may include different portions of files, for -example, excluding certain features from certain distributions. It is -always guaranteed that anything not defined for the distribution, is -removed automatically (files, file content, directories), thus ensuring -that nothing is accidentally included in the distribution. - -Autodist is closely related to the Autoconf and Automake tools, and -complements the features Autoconf and Automake provides. It is especially -targeted into circumstances where multiple distributions are created from -one source tree. The Autoconf and Automake environment is mainly designed -for one application per one source tree situations. Autodist provides -mechanisms to create all kinds of distributions that can be created from -one source tree. To be able to use Autodist, the Autoconf and Automake -must be installed into the system. - -The motivation behind Autodist stems from need to be able to create -multiple distributions from one large source tree in a precise and -controllable manner. The Autoconf and Automake provides mere basic -control what is included in and excluded from distributions and how the -distributions are created. They also do not provide mechanism to define -different licensing conditions for different distributions, or changing -the license automatically for different user or customer purposes. Many -large software projects, companies and corporations have commonly been -using Autoconf and Automake tools, but have had the need to create their -own ad-hoc mechanisms to control distribution creation. The Autodist -attempts to provide a tool that any size software project or company can -effectively use to manage their distributions. - -Autodist is not a binary packaging system. It is specificly used to -create source distributions. A binary packaging system, however can be -hooked to the distribution creation process, if needed. - -Read the INSTALL file on how to install the Autodist. Refer info pages -for Autodist documentation by giving 'info autodist'. Mail suggestions -and/or patches to autodist@silcnet.org, and bugs to -autodist-bugs@silcnet.org. Please, always include the Autodist version -number to your email. Give 'autodist --version' to get version. - -Autodist was originally written for the SILC Project (Secure Internet Live -Conferencing), which needed controlled mechanism to create several -distinct distributions from one source tree. - diff --git a/apps/autodist/TODO b/apps/autodist/TODO deleted file mode 100644 index 106cb484..00000000 --- a/apps/autodist/TODO +++ /dev/null @@ -1,8 +0,0 @@ -TODO In Autodist -================ - -o Better 'license-header' implementation. - -o Perhaps ability to partially re-license the source tree. Now all files - will be processed if 'license-header' is used. Only way to control - this is to use 'noprocess' or specify different header in file. diff --git a/apps/autodist/autodist.conf b/apps/autodist/autodist.conf deleted file mode 100644 index cbf17b5c..00000000 --- a/apps/autodist/autodist.conf +++ /dev/null @@ -1,49 +0,0 @@ -# Autodist configuration file - -# By default distdef prefix is '_DIST_'. To add your own prefix set the -# prefix here. NOTE: Remember to change all 'define' directives in -# distributions to use the new prefix if you change it. Example: -# -# DISTPREFIX="SILC" -# -# Will set the distdef prefix as 'SILC_DIST_'. -# -DISTPREFIX="" - -# The distdef header will be created by the Autodist. It need to be included -# in the source code in order for the preprocessor to respect distdef -# conditionals in source code. Example: -# -# DISTDEFS="include/distdefs.h" -# -DISTDEFS="distdefs.h" - -# Location of the aclocal tool. If this is omitted the Autodist will not -# run aclocal. User need to run it manually then. -# -ACLOCAL="aclocal" - -# Location of the autoheader tool. If this is omitted the Autodist will not -# run autoheader. User need to run it manually then. -# -AUTOHEADER="autoheader" - -# Location of the autoconf tool. If this is omitted the Autodist will not -# run autoconf. User need to run it manually then. -# -AUTOCONF="autoconf" - -# Location of the automake tool. If this is omitted the Autodist will not -# run automake. User need to run it manually then. -# -AUTOMAKE="automake -a -c" - -# Location of the libtoolize tool. This option should be omitted if your -# source tree does not use libtool. -# -LIBTOOLIZE="libtoolize --automake --copy" - -# Location of the make program. This must be specified in order to be -# able to create distributions. -# -MAKE="make" diff --git a/apps/autodist/autodist.in b/apps/autodist/autodist.in deleted file mode 100755 index e3b67b7a..00000000 --- a/apps/autodist/autodist.in +++ /dev/null @@ -1,2066 +0,0 @@ -#!/bin/sh -# -# Author: Pekka Riikonen -# -# Copyright (C) 2005 - 2007 Pekka Riikonen -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote -# products derived from this software without specific prior written -# permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -# NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# - -############################################################################### -# Shell compatibility - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - # Despite of this, we have managed to segfault some zsh's. - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - - -############################################################################### -# Global variables - -# Packaging and compressing -ad_gzip=true -ad_bzip2=false -ad_compress=false -ad_zip=false - -# Distribution subdirectory -distdir="distdir" -am_distdir= - -# This current distribution -distribution=default -distfile=$distribution -dist_version=0.0 -package= -bug_report= - -# All inherited distributions in this distribution -inherits= - -# All distribution defines for this distribution -distdefs= - -# All distribution undefines for this distribution -undistdefs= - -# All distribution options -doptions= -opt_template=false -opt_no_dist=false -opt_no_inherit=false - -# All includes -includes= - -# All excludes -excludes= - -# All noprocesses -noprocess= - -# All hooks -pre_hooks= -post_hooks= -pre_dist_hooks= -post_dist_hooks= -pre_p_dist_hooks= -post_p_dist_hooks= - -# Distribution license and license header -license= -licenseh= - -# Whether to output ad_debug information -debug=false -nolog=false - -# Autodist version -ver=@VERSION@ - -############################################################################### -# Configuration file -if test -f "$distdir/autodist.conf"; then - . $distdir/autodist.conf -fi - -DP=$DISTPREFIX - - -############################################################################### -# Functions - -# -# Print out debug information if debugging is enabled. To enable debugging -# set the global variable "debug" to true value. -# -# Arguments: ad_debug -# -ad_debug() -{ - if test x$debug = xtrue; then - set -f - echo autodist: $1 - set +f - fi -} - -# -# Prints out error message and exits the script. -# -# Arguments: ad_fatal -# -ad_fatal() -{ - set -f - ad_log "error: $1" - echo autodist: error: $1 - set +f - exit 1 -} - -# -# Prints out warning message -# -# Arguments: ad_warning -# -ad_warning() -{ - set -f - ad_log "warning: $1" - echo autodist: warning: $1 - set +f -} - -# -# Opens a log file. -# -# Arguments: ad_log_open -# -ad_log_open() -{ - rm -rf $1 - exec 5> $1 - - cat >&5 << EOF -This file contains messages produced by the Autodist $ver. - -EOF -} - -# -# Prints to an open log file -# -# Arguments: ad_log -# -ad_log() -{ - if test x$nolog = xfalse; then - echo "$1" >&5 - fi -} - -# -# Initializes the Autodist environment, creates default distribution -# directory, and default distribution. -# -# Arguments: ad_initialize -# -ad_initialize() -{ - ad_debug "Initializing Autodist environment" - - # Create default distdir - if test '!' -f $distdir; then - mkdir -p -- $distdir - fi - - # Create Autodist configuration file - if test -f @AUTODISTDIR@/autodist.conf; then - cp -p @AUTODISTDIR@/autodist.conf $distdir - fi - - # Create default distribution - if test -f @AUTODISTDIR@/default; then - cp -p @AUTODISTDIR@/default $distdir - fi - - ad_debug "Autodist environment initialized" -} - -# -# Creates the distdefs header file including defined distdefs -# -# Arguments: ad_create_distdefs_h -# -ad_create_distdefs_h() -{ - ad_debug "Creating distdef header file" - - fname=$DISTDEFS - rm -f $fname - cat > $fname <>$fname - done - - cat >> $fname </dev/null 2>/dev/null - fi - if test $? != 0; then - ad_fatal "aclocal failed" - fi - fi - - if test "$AUTOCONF"; then - ad_debug "Running autoconf" - $AUTOCONF - if test $? != 0; then - ad_fatal "autoconf failed" - fi - run_autoconf=true - fi - - if test "$AUTOHEADER"; then - ad_debug "Running autoheader" - $AUTOHEADER - if test $? != 0; then - ad_fatal "autoheader failed" - fi - fi - - if test "$LIBTOOLIZE"; then - ad_debug "Running libtoolize" - $LIBTOOLIZE - if test $? != 0; then - ad_fatal "libtoolize failed" - fi - fi - - if test x$run_autoconf = xtrue; then - if test '!' -f configure; then - ad_fatal "creating configure script failed" - fi - fi - - ad_debug "Ending configure creation" -} - -# -# Creates the configure.ac script from the configure.ad fragments in -# the source tree. Takes the source configure file as argument which -# is used to create the actual configure.ac. -# -# Arguments: ad_make_configure_ac -# -ad_make_configure_ac() -{ - local check - - ad_debug "Starting creating configure.ac: $1" - - ad_log "" - ad_log "Following configure.ad files were processed into configure.ac:" - ad_log "--------------------------------------------------------------" - - if test '!' -f $1; then - ad_fatal "The configure file '$1' does not exist" - fi - - check="`sed 's/^[ ]*//' < $1 | grep -v "^#" | grep -e "AD_INIT"`" - if test -z $check; then - rm -f configure.ad.cfs - rm -f $fname $fname.tmp - ad_fatal "The 'AD_INIT' macro has not been set in configure.ac" - fi - - rm -f configure.ac configure.ad.cfs - - cfs=`find . -type f -name configure\*\.ad` - for i in $cfs - do - if test "x$i" = "x$1"; then - continue - fi - - ad_debug "including $i" - ad_log " $i" - - cat $i >> configure.ad.cfs - done - - if test -f configure.ad.cfs; then - check="`sed 's/^[ ]*//' < $1 | grep -v "^#" | grep -e "AD_INCLUDE_CONFIGURE"`" - if test -z $check; then - rm -f configure.ad.cfs - ad_warning "configure.ad fragments found but 'AD_INCLUDE_CONFIGURE' is not set" - fi - fi - - # Header for configure.ac - fname="configure.tmp.ac" - cat > $fname < $fname.tmp - sed -e "/^AD_INCLUDE_CONFIGURE/d" $fname.tmp >> $fname - rm -f configure.ad.cfs $fname.tmp - else - cat $1 >> $fname - fi - - # Process AD_INIT - sed -e "/AD_INIT/s//AC_INIT([$distribution], [$dist_version], [$bug_report], [$package])/" $fname > $fname.tmp - - # Remove AD_DISABLE_DEPENDENCIES - sed -e "/^AD_DISABLE_DEPENDENCIES/d" $fname.tmp > $fname - - # Process for distribution - rm -f $fname.tmp - ad_process_file $fname $fname.tmp false - - # Remove any trailing backslashes - if test -f "$fname.tmp"; then - sed -e :a -e '/\\$/N; s/[ ]*\\\n//; ta' < $fname.tmp > configure.ac - else - cp -p $fname configure.ac - fi - rm -f $fname $fname.tmp - - ad_log " ./configure.ad" - ad_log "" - - ad_debug "Ending creating configure.ac: $1" -} - -# -# Creates the Makefile.in files by running the automake tool. -# -# Arguments: ad_make_makefile_ins -# -ad_make_makefile_ins() -{ - ad_debug "Starting creating Makefile.in files" - - if test "$AUTOMAKE"; then - ad_debug "Running automake" - $AUTOMAKE - if test $? != 0; then - ad_fatal "automake failed" - fi - fi - - ad_debug "Ending creating Makefile.in files" -} - -# -# Creates the Makefile.am files from the Makefile.ad files in the -# source tree. This runs the distribution specific processing for the -# Makefile.ad files. -# -# Arguments: ad_make_makefile_ams -# -ad_make_makefile_ams() -{ - ad_debug "Starting creating Makefile.am files" - - ad_log "" - ad_log "Following Makefile.ad files were processed into Makefile.am files:" - ad_log "------------------------------------------------------------------" - - files=`find . -type f -name Makefile\.ad` - for ff in $files - do - ad_log " $ff" - fname=`echo $ff | sed s/\.ad//` - ad_make_makefile_am $ff $fname.am - done - ad_log "" - - ad_debug "Ending creating Makefile.am files" -} - -# -# Creates Makefile.am file from the Makefile.ad file. -# -# Arguments: ad_make_makefile_am -# -ad_make_makefile_am() -{ - local am_deps=true - local f=$1 - local fname=$2 - - # Disable dependencies if requested - dc=`sed 's/^[ ]*//' < configure.ad | grep -v "^#" \ - | grep "AD_DISABLE_DEPENDENCIES"` - if test "$dc" = "AD_DISABLE_DEPENDENCIES"; then - am_deps=false - fi - - # Header for the Makefile.am - cat > $fname <> $fname - else - cat $f >> $fname - fi - - # Enable dependencies if requested - if test x$am_deps = xtrue; then - # Get list of configure.ad's to get them into deps also - cfs=`find . -type f -name configure\*\.ad` - cfs=`echo $cfs | sed 's/\.\///g'` - - cat >> $fname < [] -# -# If only source path, which may be file, directory or regular expression, -# is specified the path will be same in distribution. If the destination -# path is specified that will be the new name and/or new location of the -# source path. This, in effect, is a cp utility with ability to create -# directories if they do not exist. -# -# Arguments: ad_dist_includes -# -ad_dist_includes() -{ - local incs - - ad_debug "Starting running includes: $1 $2" - - if test x$3 = xtrue; then - ad_log "" - ad_log "Following files and directories were included in distribution:" - ad_log "--------------------------------------------------------------" - fi - - # By default do not expand pathnames - set -f - - # Add : separator at the end - incs="`echo "$1" | sed 's/$/ : /'`" - - src= - dst= - for i in $incs - do - if test "$i" = ":" && test -z "$src"; then - continue - fi - if test -z "$src"; then - src=$i - continue - fi - if test -z "$dst" && test "$i" != ":"; then - dst=$i - else - dst=$src - fi - - ad_debug "Including $src into $dst" - - if test -f "$src"; then - # Add file - - if test "$src" = "$dst"; then - # Add to same location - d=`echo $src | sed 's,/[^/]*$,,'` - if test "$d" != "$src" && test "$d" != "." && \ - test '!' -d $am_distdir/$d; then - mkdir -p -- $am_distdir/$d || exit 1 - fi - else - # Add to different location - check=`echo "$dst" | sed 's/?//; s/*//; s/\[//; s/\]//'` - if test "$check" != "$dst"; then - ad_fatal "Invalid destination in 'include $src $dst'" - fi - - d=`echo $dst | sed 's,/[^/]*$,,'` - if test "$d" != "$dst" && test "$d" != "." && \ - test '!' -d $am_distdir/$d; then - mkdir -p -- $am_distdir/$d || exit 1 - fi - fi - - if test x$3 = xtrue; then - ad_log " $src into $am_distdir/$d" - fi - cp -p $src $am_distdir/$d || exit 1 - - elif test -d "$src"; then - # Add directory - - if test "$src" = "$dst"; then - # Add to same location - d=`echo $src | sed 's,/[^/]*$,,'` - ds=`echo $src | sed 's/\/$//'` - if test "$ds" = "$d"; then - d=`echo $d | sed 's,/[^/]*$,,'` - fi - if test "$ds" = "$d"; then - d="" - fi - if test '!' -d $am_distdir/$d && test "$ds" != "$d"; then - mkdir -p -- $am_distdir/$d || exit 1 - fi - - if test x$3 = xtrue; then - ad_log " $src into $am_distdir/$d" - fi - cp -pR $src $am_distdir/$d || exit 1 - else - # Add to different location - check=`echo "$dst" | sed 's/?//; s/*//; s/\[//; s/\]//'` - if test "$check" != "$dst"; then - ad_fatal "Invalid destination in 'include $src $dst'" - fi - - d=`echo $dst | sed 's,/[^/]*$,,'` - ds=`echo $dst | sed 's/\/$//'` - if test "$ds" = "$d"; then - d=`echo $d | sed 's,/[^/]*$,,'` - fi - if test '!' -d $am_distdir/$d && test "$dst" != "$d"; then - mkdir -p -- $am_distdir/$d || exit 1 - fi - - if test x$3 = xtrue; then - ad_log " $src into $am_distdir/$dst" - fi - cp -pR $src $am_distdir/$dst || exit 1 - fi - - elif test x$2 != xtrue; then - # We assume regular expression in filename - check=`echo "$src" | sed 's/?//; s/*//; s/\[//; s/\]//'` - if test "$check" == "$src"; then - if test '!' -a $src; then - ad_fatal "Including $src: No such file or directory" - fi - src= - dst= - continue - fi - - # Recursively call this function with expanded pathnames. The - # reason why we don't let sh by default expand pathnames is that - # the include's destination is optional. If sh expands by default - # we don't know the destination. For this reason, we handle the - # expansion here ourselves. - - # If src and dst are same, then expand the pathname as we'll copy - # matches to their own locations. - if test "$src" = "$dst"; then - # Expand pathnames, and format to our include format - set +f - srcs=`echo $src | sed -e 's/ / : /g' -e 's/^/ : /'` || exit 1 - set -f - else - # Destination is new, and it has to be a directory. - check=`echo "$dst" | sed 's/?//; s/*//; s/\[//; s/\]//'` - if test "$check" != "$dst"; then - ad_fatal "Invalid destination in 'include $src $dst'" - fi - - # Make sure dst has / at the end, as this must be a directory - dst=`echo $dst | sed 's/\/$//; s/$/\//'` - - # Escape dst for sed - dste=`echo $dst | sed 's/\\//\\\\\//g'` || exit 1 - - # Expand pathnames, and format to our include format - set +f - srcs=`echo $src | sed -e "s/ / $dste : /g" \ - -e 's/^/ : /' -e "s/$/ $dste/"` || exit 1 - set -f - fi - - # Include recursively - ad_dist_includes "$srcs" true - - elif test '!' -a $src; then - ad_fatal "Including $src: No such file or directory" - fi - - src= - dst= - done - - if test x$3 = xtrue; then - ad_log "" - fi - - set +f - - ad_debug "Ending running includes: $1 $2" -} - -# -# Excludes files specified in the distribution for exclusion. Used when -# creating the distribution for packaging. -# -# exclude has the following format in distfile: -# -# exclude -# -# The path may be file, directory or regular expression. -# -# Arguments: ad_dist_includes -# -ad_dist_excludes() -{ - ad_debug "Starting running excludes: $1" - - if test x$2 = xtrue; then - ad_log "" - ad_log "Following files and directories were excluded from distribution:" - ad_log "----------------------------------------------------------------" - fi - - cur=`pwd` - cd $am_distdir || exit 1 - for i in $1 - do - ad_debug "Excluding $i" - if test x$2 = xtrue; then - ad_log " $i" - fi - rm -rf $i - done - cd $cur || exit 1 - - if test x$2 = xtrue; then - ad_log "" - fi - - ad_debug "Ending running excludes: $1" -} - -# -# Processes the entire tree for distribution. This inspects files other -# than source and header files, with exception of any file with .ad -# suffix, and performs distribution processing for the file. The original -# file is replaced with the processed file. This function is used when -# creating the distribution for packaging. -# -# Arguments: ad_process_tree -# -ad_process_tree() -{ - ad_debug "Starting processing non-source files: $1" - - # Take files, except source and .ad files. - files=`find $am_distdir -type f \! -name \*\.ad \( \ - \! -name \*\.[cC] -a \ - \! -name \*\.[cC][cCpP] -a \ - \! -name \*\.[cC][xX][xX] -a \ - \! -name \*\.[cC][pP][pP] -a \ - \! -name \*\.[cC]++ -a \ - \! -name \*\.m -a \ - \! -name \*\.mm -o \ - \! -name \*\.M -o \ - \! -name \*\.S -o \ - \! -name \*\.[hH] -a \ - \! -name \*\.hh -a \ - \! -name \*\.[cC]\.in -a \ - \! -name \*\.[cC][cCpP]\.in -a \ - \! -name \*\.[cC][xX][xX]\.in -a \ - \! -name \*\.[cC][pP][pP]\.in -a \ - \! -name \*\.[cC]++\.in -a \ - \! -name \*\.m\.in -a \ - \! -name \*\.[hH]\.in -a \ - \! -name \*\.hh\.in \)` - files=`echo $files | sed 's/$am_distdir//'` - - for ff in $files - do - ad_process_file $ff $ff.tmp true - if test -f $ff.tmp; then - rm -f $ff || exit 1 - mv -f $ff.tmp $ff || exit 1 - fi - done - - ad_debug "Ending processing non-source files: $1" -} - -# -# Processes the entire source tree for distribution. This inspects files -# in the source tree, with exception of any file with .ad suffix, and -# performs distribution processing for the file. The original file is -# replaced with the processed file. This function is used when creating -# the distribution for packaging. -# -# Call this before ad_process_tree(). -# -# Arguments: ad_process_source_tree -# -ad_process_source_tree() -{ - ad_debug "Starting processing source files: $1" - - # We take only C/C++ (and other files that are run through traditional - # preprocessor) files since they use the C compiler friendly version - # of distdefs. Other files are not assumed to use them. - files=`find $am_distdir -type f \! -name \*\.ad \( \ - -name \*\.[cC] -o \ - -name \*\.[cC][cCpP] -o \ - -name \*\.[cC][xX][xX] -o \ - -name \*\.[cC][pP][pP] -o \ - -name \*\.[cC]++ -o \ - -name \*\.m -o \ - -name \*\.mm -o \ - -name \*\.M -o \ - -name \*\.S -o \ - -name \*\.[hH] -o \ - -name \*\.hh -o \ - -name \*\.[cC]\.in -o \ - -name \*\.[cC][cCpP]\.in -o \ - -name \*\.[cC][xX][xX]\.in -o \ - -name \*\.[cC][pP][pP]\.in -o \ - -name \*\.[cC]++\.in -o \ - -name \*\.m\.in -o \ - -name \*\.[hH]\.in -o \ - -name \*\.hh\.in \)` - - for ff in $files - do - ad_process_source_file $ff $ff.tmp true - if test -f $ff.tmp; then - rm -f $ff || exit 1 - mv -f $ff.tmp $ff || exit 1 - fi - done - - ad_debug "Ending processing source files: $1" -} - -# -# Removes Autodist dependencies, as they cannot be delivered to distribution. -# -# Arguments: ad_remove_dependencies -# -ad_remove_dependencies() -{ - ad_debug "Removing dependencies" - - ams=`find $1 -type f -name Makefile\.\*` - for i in $ams - do - sed -e "/^# S_AD_ENABLE_DEPENDENCIES/,/^# E_AD_ENABLE_DEPENDENCIES/d" $i > $i.tmp - mv $i.tmp $i - done -} - -# -# Makes distribution sane, ala modtimes. Since we modify the distribution -# we need to make it sane after that. -# -# Arguments: ad_makedist_makesane -# -ad_makedist_makesane() -{ - ad_debug "Making distribution file modtimes sane" - - # DO NOT change these order unless you know what you are doing. - if test -f $am_distdir/configure.ac; then - touch $am_distdir/configure.ac - fi - - if test -f $am_distdir/aclocal.m4; then - touch $am_distdir/aclocal.m4 - fi - - if test '!' -f Makefile; then - ad_fatal "Makefile: No such file or directory" - fi - - configh=`grep "^CONFIG_HEADER" Makefile | cut -d= -f2 | sed 's/^[ ]*//'` - touch $am_distdir/$configh.in 1>/dev/null 2>/dev/null - - files=`find $am_distdir -type f -name Makefile\.in` - for i in $files - do - touch $i - done - - if test -f $am_distdir/configure; then - touch $am_distdir/configure - fi - - if test -f $am_distdir/config.status; then - touch $am_distdir/config.status - fi - - ad_debug "Distribution made sane" -} - -# -# Creates distribution of the source tree. All files in the distribution -# will be processed and the distribution will be packaged. -# -# Arguments: ad_makedist -# -ad_makedist() -{ - ad_log_open "makedist.log" - ad_debug "Starting distribution creation" - - ad_log "Created distribution" - ad_log "--------------------" - ad_log "" - - if test '!' -f autodist.dist; then - ad_fatal "Autodist has not been run yet to prepare source tree" - fi - - if test -z $MAKE; then - ad_fatal "The MAKE variable is not set in autodist.conf" - fi - - # Get distdir from Makefile - if test '!' -f Makefile; then - ad_fatal "The source tree is not configured, run ./configure first" - fi - - # Parse the requested distribution - distribution=`grep "dist:" < autodist.dist | cut -d: -f2` || exit 1 - dist_version=`grep "ver:" < autodist.dist | cut -d: -f2` || exit 1 - am_distdir=`grep "distdir:" < autodist.dist | cut -d: -f2` || exit 1 - params=`grep "params:" < autodist.dist | cut -d: -f2` || exit 1 - ad_parse_distribution $distribution false - ad_log " Distribution: $distribution $dist_version" - ad_log " Destination directory: $am_distdir" - ad_log "" - ad_process_distdefs - - if test x$opt_no_dist = xtrue; then - ad_fatal "The '$distribution' distribution cannot be packaged" - fi - - # Run pre-dist-hooks - ad_run_dist_hooks "$pre_dist_hooks" "$params" - - # Create distribution directory - ad_debug "Creating distribution directory $am_distdir" - $MAKE distdir || exit 1 - chmod -R a+r $am_distdir - - if test '!' -d $am_distdir; then - ad_fatal "Distribution directory $am_distdir not created" - fi - - # Run pre-process-dist-hooks - ad_run_dist_hooks "$pre_p_dist_hooks" "$params" - - # Run excludes - ad_dist_excludes "$excludes" true - - # Run includes - ad_dist_includes "$includes" false true - - # Include specific license file if specified - if test "$license" != ""; then - ad_log "" - ad_log "License file in distribution:" - ad_log "-----------------------------" - ad_log " $license into $am_distdir/COPYING" - ad_log "" - cp -p $license $am_distdir/COPYING || exit 1 - fi - - # Remove dependencies - ad_remove_dependencies $am_distdir - - # Process noprocesses, first pass - ad_process_noprocess true - - ad_log "" - ad_log "Following files were not re-licensed:" - ad_log "-------------------------------------" - - # Process source files - ad_debug "Process distribution source tree" - ad_process_source_tree $am_distdir - - # Process non-source files - ad_debug "Process distribution tree" - ad_process_tree $am_distdir - - ad_log "" - - # Process noprocesses, second pass - ad_process_noprocess false - - # Run post-process_dist-hooks - ad_run_dist_hooks "$post_p_dist_hooks" "$params" - - # Make distribution sane - ad_makedist_makesane - - # Package - ad_debug "Packaging distribution" - tar chof $am_distdir.tar $am_distdir || exit 1 - - # Compress - ad_debug "Compressing distribution package" - if test x$ad_gzip = xtrue; then - ad_debug "Compressing distribution package $am_distdir.tar.gz" - gzip -9 -c $am_distdir.tar > $am_distdir.tar.gz || exit 1 - fi - if test x$ad_bzip2 = xtrue; then - ad_debug "Compressing distribution package $am_distdir.tar.bz2" - bzip2 -9 -c $am_distdir.tar > $am_distdir.tar.bz2 || exit 1 - fi - if test x$ad_compress = xtrue; then - ad_debug "Compressing distribution package $am_distdir.tar.Z" - compress -c $am_distdir.tar > $am_distdir.tar.Z || exit 1 - fi - if test x$ad_zip = xtrue; then - rm -f $am_distdir.zip - ad_debug "Compressing distribution package $am_distdir.zip" - zip -rq $am_distdir.zip $am_distdir || exit 1 - fi - rm -f $am_distdir.tar - - # Run post-dist-hooks - ad_run_dist_hooks "$post_dist_hooks" "$params" - - # Cleanup - rm -rf $am_distdir - - ad_log "Distribution created successfully." - - ad_debug "Ending distribution creation" -} - -# -# Handles distribution options. -# -# option has the following format in distfile: -# -# option