├── .gitignore ├── LICENSE ├── README.md ├── delegate9.9.13 ├── CHANGES ├── CONTENTS.txt ├── COPYRIGHT ├── CREDITS ├── DELEGATE_CONF.vce ├── DG9note.html ├── INSTALL ├── INSTALL.txt ├── IPv6NOTE.txt ├── LICENSE-ja.txt ├── LICENSE.txt ├── Makefile ├── Makefile.QSC ├── README ├── README.5-6 ├── README.7-8 ├── README.MAKE ├── announce │ ├── Release-9.9.10.txt │ ├── Release-9.9.11.txt │ ├── Release-9.9.12.txt │ ├── Release-9.9.13.txt │ ├── Release-9.9.6.txt │ ├── Release-9.9.7.txt │ ├── Release-9.9.8.txt │ └── Release-9.9.9.txt ├── bench ├── bin │ ├── Makefile │ ├── README │ ├── dmosaic │ ├── dwhois │ ├── expire │ └── go-far ├── cksums ├── dg9.conf.txt ├── dgcaps.h ├── doc │ ├── HowToDG.html │ ├── Makefile │ ├── Manual.htm │ ├── jpconv.htm │ ├── tutor-en.htm │ └── tutor-jp.htm ├── filters │ ├── Makefile │ ├── backup.c │ ├── bdtee.c │ ├── bdthru.c │ ├── cafe.c │ ├── cafemain.c │ ├── cfi.c │ ├── cfi.conf │ ├── ciicgi.c │ ├── dglogs.c │ ├── dl.c │ ├── dping.c │ ├── expired.c │ ├── fcl.c │ ├── gzip.c │ ├── htview.c │ ├── htwrap.c │ ├── m17nccx.c │ ├── mkstab.c │ ├── netzip.c │ ├── pdft.c │ ├── reclog.c │ ├── regex.c │ ├── sslway.c │ └── swft.c ├── fsx │ ├── Makefile │ └── any2fdif.c ├── gates │ ├── Gates_Win32.c │ ├── Gates_Win32.c.des │ ├── Makefile │ └── b2x.c ├── gen │ └── README ├── id.shtml ├── include-ce │ ├── aclapi.h │ ├── crtdbg.h │ ├── direct.h │ ├── errno.h │ ├── fcntl.h │ ├── io.h │ ├── process.h │ ├── share.h │ ├── signal.h │ ├── sys │ │ ├── locking.h │ │ ├── stat.h │ │ ├── timeb.h │ │ └── types.h │ ├── wince.h │ └── winsvc.h ├── include │ ├── Makefile │ ├── SLL.h │ ├── _typedefs.h │ ├── bldsign.h │ ├── config.h │ ├── credhy.h │ ├── delegate.h │ ├── dgctx.h │ ├── dglib.h │ ├── file.h │ ├── fpoll.h │ ├── htadmin.h │ ├── htswitch.h │ ├── http.h │ ├── log.h │ ├── mime.h │ ├── mkcpp.c │ ├── mkdef │ ├── mysgTTy.h │ ├── passwd.h │ ├── proc.h │ ├── str_stdio.h │ ├── sysconf.h │ ├── typedefs.c │ ├── url.h │ ├── vaddr.h │ ├── vsignal.h │ ├── vsocket.h │ ├── yalloca.h │ ├── yarg.h │ ├── yselect.h │ ├── ysignal.h │ ├── ysocket.h │ ├── ystring.h │ ├── ystrvec.h │ └── ywinsock.h ├── install-chroot.sh ├── install.sh ├── lib │ └── README ├── link-libs.sh ├── link-win32.sh ├── link-win32_win8.sh ├── link-wince.sh ├── make-fin.sh ├── make-init.sh ├── make-vce.sh ├── make-vs8ce_win8.bat ├── make-xcc ├── maker │ ├── ERR_error_string_n.c │ ├── FMODE.c │ ├── Gates_Win32.c │ ├── Makefile │ ├── RSA_generate_key.c │ ├── SSL_CTX_set_tmp_rsa_callback.c │ ├── SSL_library_init.c │ ├── SSL_set_SSL_CTX.c │ ├── Stty.c │ ├── _-fcloseFILE.c │ ├── _-fcloseFILE2.c │ ├── _-fcntl.c │ ├── _-fgetpos.c │ ├── _-forkpty.c │ ├── _-fseeko.c │ ├── _-getrusage.c │ ├── _-mkfifo.c │ ├── _-mutex.c │ ├── _-poll.c │ ├── _-poll1.c │ ├── _-poll2.c │ ├── _-pthread_create.c │ ├── _-ptrace.c │ ├── _-recv.c │ ├── _-regex.c │ ├── _-select.c │ ├── _-setferror.c │ ├── _-sgTTy.c │ ├── _-statvfs.c │ ├── _-strcasestr.c │ ├── _-sysconf.c │ ├── _-sysconf2.c │ ├── _-sysinfo.c │ ├── _-system.c │ ├── ___beginthread.c │ ├── ___lwp_create.c │ ├── ___spawnvp.c │ ├── __alloca.c │ ├── __fchmod.c │ ├── __fchown.c │ ├── __flock.c │ ├── __fork.c │ ├── __forkpty.c │ ├── __futimes.c │ ├── __gethostbyname2.c │ ├── __getrlimit.c │ ├── __getwinsize.c │ ├── __link.c │ ├── __lstat.c │ ├── __lwp_create.c │ ├── __malloc_size.c │ ├── __opendir.c │ ├── __pthread_create.c │ ├── __pthread_kill.c │ ├── __ptrace.c │ ├── __scandir.c │ ├── __setproctitle.c │ ├── __sigaction.c │ ├── __spawnvp.c │ ├── __statvfs.c │ ├── __symlink.c │ ├── __syscall.c │ ├── __sysconf.c │ ├── __sysctl.c │ ├── __sysinfo.c │ ├── __syslog.c │ ├── __system.c │ ├── __tcsetattr.c │ ├── __ualarm.c │ ├── __uname.c │ ├── __usleep.c │ ├── __utimes.c │ ├── _spawnvp.c │ ├── alloca.c │ ├── avail.c │ ├── bcopy.c │ ├── bzero.c │ ├── chown.c │ ├── chroot.c │ ├── closesocket.c │ ├── dlopen.c │ ├── dummy.c │ ├── endhostent.c │ ├── errno.c │ ├── fchmod.c │ ├── fchown.c │ ├── fcloseFILE.c │ ├── fgetpos.c │ ├── flockfile.c │ ├── fork.c │ ├── forkpty.c │ ├── forkpty1.c │ ├── fpurge.c │ ├── fseeko.c │ ├── fsync.c │ ├── futimes.c │ ├── futimes_.c │ ├── getcwd.c │ ├── gethostbyname2.c │ ├── gethostid.c │ ├── getmsg.c │ ├── getrlimit.c │ ├── getrusage.c │ ├── getwd.c │ ├── getwinsize.c │ ├── gxx.c │ ├── inet_aton.c │ ├── killpg.c │ ├── link.c │ ├── lstat.c │ ├── malloc_size.c │ ├── mkfifo.c │ ├── mkmake.c │ ├── mutex.c │ ├── netsh_none.c │ ├── nice.c │ ├── nothread.c │ ├── old_alloca.c │ ├── opt_s_caps.c │ ├── opt_s_htaccept.c │ ├── opt_s_pilsner.c │ ├── opt_s_sox.c │ ├── opt_s_spinach.c │ ├── opt_s_stls.c │ ├── opt_s_vsap.c │ ├── p2i.c │ ├── p2ll.c │ ├── pam_start.c │ ├── pendingcc.c │ ├── pendingcc1.c │ ├── pthread_kill.c │ ├── ptrace.c │ ├── putenv.c │ ├── readlink.c │ ├── regex.c │ ├── sendFd1.c │ ├── sendFd2.c │ ├── sendFd3.c │ ├── setbuffer.c │ ├── setegid.c │ ├── seteuid.c │ ├── setferror.c │ ├── setlinebuf.c │ ├── setlogin.c │ ├── setproctitle.c │ ├── setresuid.c │ ├── setsid.c │ ├── sgTTy.c │ ├── sigaction.c │ ├── sigmask.c │ ├── sigsetmask.c │ ├── snprintf.c │ ├── socketpair.c │ ├── socklen_s.c │ ├── socklen_u.c │ ├── spawnvp.c │ ├── spawnvp_.c │ ├── statvfs.c │ ├── stdio.c │ ├── strcasecmp.c │ ├── strcasestr.c │ ├── strdup.c │ ├── strerror.c │ ├── strncpy.c │ ├── strrcasestr.c │ ├── strstr.c │ ├── symlink.c │ ├── sysctl.c │ ├── sysctlbyname.c │ ├── sysinfo.c │ ├── syslog.c │ ├── timegm.c │ ├── ualarm.c │ ├── unaligned.c │ ├── uname.c │ ├── unsetenv.c │ ├── unsetenv_.c │ ├── usleep.c │ ├── utimes.c │ ├── vfork.c │ ├── wait3.c │ ├── waitpid.c │ └── yp_match.c ├── mimekit │ ├── CHANGES │ ├── ISO2022JP │ ├── Makefile │ ├── README │ ├── README-LIB │ ├── README-PGP │ ├── gendom.c │ ├── mime.c │ ├── mimecodes.c │ ├── mimeconv.c │ ├── mimeh_ovw.c │ ├── mimehead.c │ ├── mimemain.c │ ├── mkranlib.sh │ ├── noxlib.c │ ├── pgp.c │ ├── rfc822.c │ ├── sample │ └── str_codes.c ├── mkdist-win.sh ├── mkdist.sh ├── mkmkmk.c ├── pds │ ├── md5 │ │ ├── Makefile │ │ ├── comskip │ │ ├── global.h │ │ ├── md5.h │ │ ├── md5c.c │ │ ├── md5cb.c │ │ ├── md5lib.c │ │ ├── md5main.c │ │ ├── mddriver.c │ │ └── rfc1321.txt │ └── regex │ │ ├── COPYRIGHT │ │ ├── INSTALL │ │ ├── Makefile │ │ ├── README │ │ ├── WHATSNEW │ │ ├── cclass.h │ │ ├── cname.h │ │ ├── engine.c │ │ ├── mkh │ │ ├── regcomp.c │ │ ├── regdummy.c │ │ ├── regerror.c │ │ ├── regex2.h │ │ ├── regexec.c │ │ ├── regfree.c │ │ └── utils.h ├── putsigned.c ├── rary │ ├── Finish.c │ ├── IsSolaris.c │ ├── JIS.c │ ├── Makefile │ ├── SLL.c │ ├── Strftime.c │ ├── String.c │ ├── TLEX.c │ ├── Thread.c │ ├── Timeofday.c │ ├── asock.c │ ├── bsort.c │ ├── ccx.c │ ├── ccxmain.c │ ├── cfilib.c │ ├── cksum.c │ ├── codec.c │ ├── codeconv.c │ ├── credhy.c │ ├── dglibs.c │ ├── file.c │ ├── forkspawn.c │ ├── fpoll.c │ ├── fpolls.c │ ├── frelay.c │ ├── fstat.c │ ├── hash.c │ ├── hostaddr.c │ ├── html.c │ ├── libpam.c │ ├── lock.c │ ├── lsock.c │ ├── modfmt.c │ ├── nbio.c │ ├── netsh.c │ ├── pam.c │ ├── passwd.c │ ├── pelcgb.c │ ├── pilsner.c │ ├── pstitle.c │ ├── randstack.c │ ├── rawcopy.c │ ├── readycc.c │ ├── sched.c │ ├── schedmain.c │ ├── sed.c │ ├── setutimes.c │ ├── signal.c │ ├── socks5.c │ ├── str_stdio.c │ ├── strid.c │ ├── syslog.c │ ├── tar.c │ ├── timer.c │ ├── unix.c │ ├── urlesc.c │ ├── uu.c │ ├── vsaddr.c │ ├── wince.c │ ├── windows.c │ ├── windows0.c │ ├── winmisc.c │ ├── winmo.c │ ├── winnat.c │ ├── winsspi.c │ └── ystring.c ├── resolvy │ ├── Makefile │ ├── ccres │ ├── dns.h │ ├── dnsnode.c │ ├── hostent.c │ ├── netdom.sample │ ├── ntod.c │ ├── rescache.c │ ├── resconf.c │ ├── reshost.c │ ├── resmain.c │ └── resolv.c ├── setup-subin.sh ├── src-srcsign.c ├── src │ ├── Makefile │ ├── X.c │ ├── abort.c │ ├── access.c │ ├── admin.c │ ├── alias.c │ ├── auth.h │ ├── bcounter.c │ ├── builtin.c │ ├── builtin │ │ ├── config │ │ │ ├── anonymous-cert.pem │ │ │ ├── anonymous-key.pem │ │ │ ├── config-data@id.delegate.org.pem │ │ │ ├── delegate.ico │ │ │ ├── dgca.cnf │ │ │ ├── dgcert.pem │ │ │ └── smtpgate │ │ │ │ └── @default │ │ │ │ └── conf │ │ ├── icons │ │ │ ├── cern │ │ │ │ ├── README │ │ │ │ ├── back.gif │ │ │ │ ├── binary.gif │ │ │ │ ├── binhex.gif │ │ │ │ ├── blank.gif │ │ │ │ ├── compressed.gif │ │ │ │ ├── dir.gif │ │ │ │ ├── directory.gif │ │ │ │ ├── doc.gif │ │ │ │ ├── document.gif │ │ │ │ ├── dummy.gif │ │ │ │ ├── ftp.gif │ │ │ │ ├── gzip.gif │ │ │ │ ├── image.gif │ │ │ │ ├── index.gif │ │ │ │ ├── index2.gif │ │ │ │ ├── movie.gif │ │ │ │ ├── sound.gif │ │ │ │ ├── tar.gif │ │ │ │ ├── telnet.gif │ │ │ │ ├── text.gif │ │ │ │ ├── unknown.gif │ │ │ │ ├── unknown.old.gif │ │ │ │ └── uu.gif │ │ │ └── ysato │ │ │ │ ├── DeleGateLogo.gif │ │ │ │ ├── DeleGateLogoTrans.gif │ │ │ │ ├── NotFound.gif │ │ │ │ ├── Remote.gif │ │ │ │ ├── center.gif │ │ │ │ ├── default.ico │ │ │ │ ├── delegate.gif │ │ │ │ ├── delegate9.gif │ │ │ │ ├── dg64-old.gif │ │ │ │ ├── dg64.gif │ │ │ │ ├── down.gif │ │ │ │ ├── favicon-old.ico │ │ │ │ ├── favicon.ico │ │ │ │ ├── favicon2.ico │ │ │ │ ├── frog.gif │ │ │ │ ├── frog.xbm │ │ │ │ ├── frog9L.bmp │ │ │ │ ├── frog9L.gif │ │ │ │ ├── frog9LT.gif │ │ │ │ ├── frog9LTW.gif │ │ │ │ ├── frog9RT.bmp │ │ │ │ ├── frog9n.gif │ │ │ │ ├── frogAdmin.gif │ │ │ │ ├── frogAdmin.xbm │ │ │ │ ├── frogHead.gif │ │ │ │ ├── frogSearch.gif │ │ │ │ ├── frogSearch.xbm │ │ │ │ ├── frogTrans.gif │ │ │ │ ├── item.gif │ │ │ │ ├── item.xbm │ │ │ │ ├── left.gif │ │ │ │ ├── left.xbm │ │ │ │ ├── left2.gif │ │ │ │ ├── left3.gif │ │ │ │ ├── next.gif │ │ │ │ ├── next1l.gif │ │ │ │ ├── prev.gif │ │ │ │ ├── prev.xbm │ │ │ │ ├── prev1l.gif │ │ │ │ ├── print.gif │ │ │ │ ├── right.gif │ │ │ │ ├── right2.gif │ │ │ │ ├── right3.gif │ │ │ │ ├── unread.gif │ │ │ │ ├── unread.xbm │ │ │ │ └── up.gif │ │ └── mssgs │ │ │ ├── 302-moved.dhtml │ │ │ ├── 305-useproxy.dhtml │ │ │ ├── 401-unauth.dhtml │ │ │ ├── 403-forbidden.dhtml │ │ │ ├── 404-notfound.dhtml │ │ │ ├── 407-unauthproxy.dhtml │ │ │ ├── 426-upgrade.dhtml │ │ │ ├── 502-cantconnect.dhtml │ │ │ ├── 502-offline.dhtml │ │ │ ├── admin │ │ │ ├── AdminMain.dhtml │ │ │ ├── CertAdmin.dhtml │ │ │ ├── Configure.dhtml │ │ │ ├── CustomCfg.dhtml │ │ │ ├── Directory.dhtml │ │ │ ├── Form2conf.dhtml │ │ │ ├── Hostsets.dhtml │ │ │ ├── MountForm.dhtml │ │ │ ├── ServerCtl.dhtml │ │ │ ├── StatusCtl.dhtml │ │ │ ├── SystemCfg.dhtml │ │ │ ├── account.dhtml │ │ │ ├── admin-guide.dhtml │ │ │ ├── admin-ja.cnv │ │ │ ├── admin-misc.dhtml │ │ │ ├── adminNewACL.dhtml │ │ │ ├── cert-DGCA.dhtml │ │ │ ├── cert-attrs.dhtml │ │ │ ├── cert-coms.dhtml │ │ │ ├── cert-opts.dhtml │ │ │ ├── cert-out.dhtml │ │ │ ├── conf-MAXIMA.dhtml │ │ │ ├── conf-TIMEOUT.dhtml │ │ │ ├── conf-accessctl.dhtml │ │ │ ├── conf-admconf.dhtml │ │ │ ├── conf-authorizer.dhtml │ │ │ ├── conf-backup.dhtml │ │ │ ├── conf-compdecomp.dhtml │ │ │ ├── conf-confdata.dhtml │ │ │ ├── conf-confhelp.dhtml │ │ │ ├── conf-dataplus.dhtml │ │ │ ├── conf-destserv.dhtml │ │ │ ├── conf-details.dhtml │ │ │ ├── conf-directories.dhtml │ │ │ ├── conf-list.dhtml │ │ │ ├── conf-listhelp.dhtml │ │ │ ├── conf-listxcom.dhtml │ │ │ ├── conf-loadsave.dhtml │ │ │ ├── conf-logconf.dhtml │ │ │ ├── conf-mini.dhtml │ │ │ ├── conf-mount.dhtml │ │ │ ├── conf-reachable.dhtml │ │ │ ├── conf-rename.dhtml │ │ │ ├── conf-upload.dhtml │ │ │ ├── conf-usrport.dhtml │ │ │ ├── configmenu.dhtml │ │ │ ├── custom-add.dhtml │ │ │ ├── custom1.dhtml │ │ │ ├── dirmenu.dhtml │ │ │ ├── editline.dhtml │ │ │ ├── file-create.dhtml │ │ │ ├── file-list.dhtml │ │ │ ├── file-show.dhtml │ │ │ ├── gaclSpec.dhtml │ │ │ ├── getACLform.dhtml │ │ │ ├── head-short.dhtml │ │ │ ├── head-sslauth.dhtml │ │ │ ├── head.dhtml │ │ │ ├── install.dhtml │ │ │ ├── lang.dhtml │ │ │ ├── logging.dhtml │ │ │ ├── menu-ext.dhtml │ │ │ ├── menu.dhtml │ │ │ ├── mount-example.dhtml │ │ │ ├── printauth.dhtml │ │ │ ├── protomenu.dhtml │ │ │ ├── putACLform.dhtml │ │ │ ├── serv-coms.dhtml │ │ │ ├── serv-help.dhtml │ │ │ ├── serv-list.dhtml │ │ │ ├── serv-longlist.dhtml │ │ │ ├── serv-startstop.dhtml │ │ │ ├── server-help-old.dhtml │ │ │ ├── server-help.dhtml │ │ │ ├── server-help2.dhtml │ │ │ ├── servers.dhtml │ │ │ ├── setup-auth.dhtml │ │ │ ├── setup-buttons.dhtml │ │ │ ├── setup-ioconf.dhtml │ │ │ ├── setup-servers.dhtml │ │ │ ├── setup.dhtml │ │ │ ├── showconf.dhtml │ │ │ ├── showlog.dhtml │ │ │ ├── stop-self.dhtml │ │ │ ├── terminate.dhtml │ │ │ ├── upload.dhtml │ │ │ ├── version.dhtml │ │ │ └── youareauth.dhtml │ │ │ ├── applet.dhtml │ │ │ ├── client │ │ │ └── welcome.dhtml │ │ │ ├── config.dhtml │ │ │ ├── file │ │ │ ├── ftp-banner.dhtml │ │ │ ├── ftpgw-anonauth.dhtml │ │ │ ├── ftpgw-header.dhtml │ │ │ └── ftpgw-tailer.dhtml │ │ │ ├── news │ │ │ ├── admin.dhtml │ │ │ ├── adminGetACL.dhtml │ │ │ ├── adminNewACL.dhtml │ │ │ ├── adminShowACL.dhtml │ │ │ ├── art-attrs.dhtml │ │ │ ├── art-authadm.dhtml │ │ │ ├── art-authkey.dhtml │ │ │ ├── art-comment.dhtml │ │ │ ├── art-echopass.dhtml │ │ │ ├── art-mask.dhtml │ │ │ ├── artadmin.dhtml │ │ │ ├── artbuttons.dhtml │ │ │ ├── arthead.dhtml │ │ │ ├── artline.dhtml │ │ │ ├── artlist.dhtml │ │ │ ├── artlistbody.dhtml │ │ │ ├── artlistfooter.dhtml │ │ │ ├── artmenu.dhtml │ │ │ ├── artnone.dhtml │ │ │ ├── forward.dhtml │ │ │ ├── getpass.dhtml │ │ │ ├── jump.dhtml │ │ │ ├── ngline.dhtml │ │ │ ├── nglist.dhtml │ │ │ ├── reply.dhtml │ │ │ ├── sendmail.dhtml │ │ │ ├── sendpass.dhtml │ │ │ ├── top.dhtml │ │ │ └── viewopts.dhtml │ │ │ ├── nonCERNproxy.dhtml │ │ │ ├── qc │ │ │ ├── robots.dhtml │ │ │ ├── telnet │ │ │ ├── telnet-banner.dhtml │ │ │ ├── telnet-cantconn.dhtml │ │ │ └── telnet-help.dhtml │ │ │ └── welcome.dhtml │ ├── cache.c │ ├── caps.c │ ├── ccache.c │ ├── cgi.c │ ├── commands.c │ ├── cond.c │ ├── conf.c │ ├── coupler.c │ ├── croncom.c │ ├── cuseeme.c │ ├── db.c │ ├── ddi.c │ ├── delegate.c │ ├── delegated.c │ ├── delegated.conf │ ├── dgauth.c │ ├── dget.c │ ├── dgsign.c │ ├── distrib.c │ ├── domain.c │ ├── dtot.c │ ├── editconf.c │ ├── embed.c │ ├── enews.c │ ├── env.c │ ├── filetype.c │ ├── filter.c │ ├── filter.h │ ├── form2conf.c │ ├── ftp.c │ ├── ftpgw.c │ ├── gacl.c │ ├── gopher.c │ ├── hostlist.c │ ├── hostlist.h │ ├── htaccept.c │ ├── htccx.c │ ├── htfilter.c │ ├── htmlgen.c │ ├── htswitch.c │ ├── http.c │ ├── httpd.c │ ├── httphead.c │ ├── httplog.c │ ├── httpx.c │ ├── icap.c │ ├── icp.c │ ├── ident.c │ ├── imap.c │ ├── inetd.c │ ├── inets.c │ ├── inets_lib.c │ ├── iotimeout.c │ ├── ipno.c │ ├── ldap.c │ ├── log.c │ ├── lpr.c │ ├── master.c │ ├── misc.c │ ├── mkmkmk.c │ ├── mount.c │ ├── msg.c │ ├── nntp.c │ ├── nntpgw.c │ ├── nntplist.c │ ├── notify.c │ ├── param.c │ ├── param.h │ ├── pop.c │ ├── process.c │ ├── qstest.c │ ├── randld │ ├── remote.c │ ├── rident.c │ ├── sample.shio │ ├── script.c │ ├── service.c │ ├── service.h │ ├── sftp.c │ ├── shio.c │ ├── shutter.c │ ├── smtp.c │ ├── smtp_lib.c │ ├── smtpgate.c │ ├── socks.c │ ├── socks4.c │ ├── sox.c │ ├── spinach.c │ ├── ssi.c │ ├── stls.c │ ├── sudo.c │ ├── svconf.c │ ├── svport.c │ ├── svstat.c │ ├── syslog.c │ ├── tcprelay.c │ ├── telnet.c │ ├── textconv.c │ ├── thmain.c │ ├── thruwayd.c │ ├── tsp.c │ ├── udprelay.c │ ├── uns.c │ ├── url.c │ ├── urlfind.c │ ├── utmpident.c │ ├── vaddr.c │ ├── version.c │ ├── vsap.c │ ├── wais.c │ ├── whois.c │ ├── win32-dg.rc │ ├── win32-dg.res │ ├── xferlog.c │ ├── xflash.c │ └── yshell.c ├── srcfiles ├── srcsign.c ├── srcvrfy ├── subin │ ├── Makefile │ ├── README_SUBIN │ ├── dgbind.c │ ├── dgchroot.c │ ├── dgcpnod.c │ ├── dgdate.c │ ├── dgforkpty.c │ ├── dgpam.c │ ├── dgsetlogin.c │ ├── dgxauth.c │ └── install.sh ├── tc └── teleport │ ├── Makefile │ ├── README │ ├── qz.c │ ├── qzcode.c │ ├── teleport.h │ ├── teleportd.c │ └── vehicle.c ├── openssh-5.9p1 ├── CREDITS ├── ChangeLog ├── INSTALL ├── LICENCE ├── Makefile.in ├── OVERVIEW ├── PROTOCOL ├── PROTOCOL.agent ├── PROTOCOL.certkeys ├── PROTOCOL.mux ├── README ├── README.dns ├── README.obfuscation ├── README.platform ├── README.privsep ├── README.tun ├── TODO ├── aclocal.m4 ├── acss.c ├── acss.h ├── addrmatch.c ├── atomicio.c ├── atomicio.h ├── audit-bsm.c ├── audit-linux.c ├── audit.c ├── audit.h ├── auth-bsdauth.c ├── auth-chall.c ├── auth-krb5.c ├── auth-options.c ├── auth-options.h ├── auth-pam.c ├── auth-pam.h ├── auth-passwd.c ├── auth-rh-rsa.c ├── auth-rhosts.c ├── auth-rsa.c ├── auth-shadow.c ├── auth-sia.c ├── auth-sia.h ├── auth-skey.c ├── auth.c ├── auth.h ├── auth1.c ├── auth2-chall.c ├── auth2-gss.c ├── auth2-hostbased.c ├── auth2-jpake.c ├── auth2-kbdint.c ├── auth2-none.c ├── auth2-passwd.c ├── auth2-pubkey.c ├── auth2.c ├── authfd.c ├── authfd.h ├── authfile.c ├── authfile.h ├── bufaux.c ├── bufbn.c ├── bufec.c ├── buffer.c ├── buffer.h ├── buildpkg.sh.in ├── canohost.c ├── canohost.h ├── channels.c ├── channels.h ├── cipher-3des1.c ├── cipher-acss.c ├── cipher-aes.c ├── cipher-bf1.c ├── cipher-ctr.c ├── cipher.c ├── cipher.h ├── cleanup.c ├── clientloop.c ├── clientloop.h ├── compat.c ├── compat.h ├── compress.c ├── compress.h ├── config.guess ├── config.h.in ├── config.sub ├── configure ├── configure.ac ├── contrib │ ├── Makefile │ ├── README │ ├── aix │ │ ├── README │ │ ├── buildbff.sh │ │ ├── inventory.sh │ │ └── pam.conf │ ├── caldera │ │ ├── openssh.spec │ │ ├── ssh-host-keygen │ │ ├── sshd.init │ │ └── sshd.pam │ ├── cygwin │ │ ├── Makefile │ │ ├── README │ │ ├── ssh-host-config │ │ ├── ssh-user-config │ │ └── sshd-inetd │ ├── findssl.sh │ ├── gnome-ssh-askpass1.c │ ├── gnome-ssh-askpass2.c │ ├── hpux │ │ ├── README │ │ ├── egd │ │ ├── egd.rc │ │ ├── sshd │ │ └── sshd.rc │ ├── redhat │ │ ├── gnome-ssh-askpass.csh │ │ ├── gnome-ssh-askpass.sh │ │ ├── openssh.spec │ │ ├── sshd.init │ │ ├── sshd.init.old │ │ ├── sshd.pam │ │ └── sshd.pam.old │ ├── solaris │ │ └── README │ ├── ssh-copy-id │ ├── ssh-copy-id.1 │ ├── sshd.pam.freebsd │ ├── sshd.pam.generic │ └── suse │ │ ├── openssh.spec │ │ ├── rc.config.sshd │ │ ├── rc.sshd │ │ └── sysconfig.ssh ├── crc32.c ├── crc32.h ├── deattack.c ├── deattack.h ├── defines.h ├── dh.c ├── dh.h ├── dispatch.c ├── dispatch.h ├── dns.c ├── dns.h ├── entropy.c ├── entropy.h ├── fatal.c ├── fixpaths ├── fixprogs ├── groupaccess.c ├── groupaccess.h ├── gss-genr.c ├── gss-serv-krb5.c ├── gss-serv.c ├── hostfile.c ├── hostfile.h ├── includes.h ├── install-sh ├── jpake.c ├── jpake.h ├── kex.c ├── kex.h ├── kexdh.c ├── kexdhc.c ├── kexdhs.c ├── kexecdh.c ├── kexecdhc.c ├── kexecdhs.c ├── kexgex.c ├── kexgexc.c ├── kexgexs.c ├── key.c ├── key.h ├── log.c ├── log.h ├── loginrec.c ├── loginrec.h ├── logintest.c ├── mac.c ├── mac.h ├── match.c ├── match.h ├── md-sha256.c ├── md5crypt.c ├── md5crypt.h ├── mdoc2man.awk ├── misc.c ├── misc.h ├── mkinstalldirs ├── moduli ├── moduli.0 ├── moduli.5 ├── moduli.c ├── monitor.c ├── monitor.h ├── monitor_fdpass.c ├── monitor_fdpass.h ├── monitor_mm.c ├── monitor_mm.h ├── monitor_wrap.c ├── monitor_wrap.h ├── msg.c ├── msg.h ├── mux.c ├── myproposal.h ├── nchan.c ├── nchan.ms ├── nchan2.ms ├── obfuscate.c ├── obfuscate.h ├── openbsd-compat │ ├── Makefile.in │ ├── base64.c │ ├── base64.h │ ├── basename.c │ ├── bindresvport.c │ ├── bsd-arc4random.c │ ├── bsd-asprintf.c │ ├── bsd-closefrom.c │ ├── bsd-cray.c │ ├── bsd-cray.h │ ├── bsd-cygwin_util.c │ ├── bsd-cygwin_util.h │ ├── bsd-getpeereid.c │ ├── bsd-misc.c │ ├── bsd-misc.h │ ├── bsd-nextstep.c │ ├── bsd-nextstep.h │ ├── bsd-openpty.c │ ├── bsd-poll.c │ ├── bsd-poll.h │ ├── bsd-snprintf.c │ ├── bsd-statvfs.c │ ├── bsd-statvfs.h │ ├── bsd-waitpid.c │ ├── bsd-waitpid.h │ ├── charclass.h │ ├── daemon.c │ ├── dirname.c │ ├── fake-rfc2553.c │ ├── fake-rfc2553.h │ ├── fmt_scaled.c │ ├── getcwd.c │ ├── getgrouplist.c │ ├── getopt.c │ ├── getrrsetbyname.c │ ├── getrrsetbyname.h │ ├── glob.c │ ├── glob.h │ ├── inet_aton.c │ ├── inet_ntoa.c │ ├── inet_ntop.c │ ├── mktemp.c │ ├── openbsd-compat.h │ ├── openssl-compat.c │ ├── openssl-compat.h │ ├── port-aix.c │ ├── port-aix.h │ ├── port-irix.c │ ├── port-irix.h │ ├── port-linux.c │ ├── port-linux.h │ ├── port-solaris.c │ ├── port-solaris.h │ ├── port-tun.c │ ├── port-tun.h │ ├── port-uw.c │ ├── port-uw.h │ ├── pwcache.c │ ├── readpassphrase.c │ ├── readpassphrase.h │ ├── realpath.c │ ├── regress │ │ ├── Makefile.in │ │ ├── closefromtest.c │ │ ├── snprintftest.c │ │ ├── strduptest.c │ │ └── strtonumtest.c │ ├── rresvport.c │ ├── setenv.c │ ├── setproctitle.c │ ├── sha2.c │ ├── sha2.h │ ├── sigact.c │ ├── sigact.h │ ├── strlcat.c │ ├── strlcpy.c │ ├── strmode.c │ ├── strptime.c │ ├── strsep.c │ ├── strtoll.c │ ├── strtonum.c │ ├── strtoul.c │ ├── sys-queue.h │ ├── sys-tree.h │ ├── timingsafe_bcmp.c │ ├── vis.c │ ├── vis.h │ ├── xcrypt.c │ └── xmmap.c ├── openssh.xml.in ├── opensshd.init.in ├── packet.c ├── packet.h ├── pathnames.h ├── pkcs11.h ├── platform.c ├── platform.h ├── progressmeter.c ├── progressmeter.h ├── readconf.c ├── readconf.h ├── readpass.c ├── regress │ ├── Makefile │ ├── README.regress │ ├── addrmatch.sh │ ├── agent-getpeereid.sh │ ├── agent-pkcs11.sh │ ├── agent-ptrace.sh │ ├── agent-timeout.sh │ ├── agent.sh │ ├── banner.sh │ ├── broken-pipe.sh │ ├── brokenkeys.sh │ ├── bsd.regress.mk │ ├── cert-hostkey.sh │ ├── cert-userkey.sh │ ├── cfgmatch.sh │ ├── cipher-speed.sh │ ├── conch-ciphers.sh │ ├── connect-privsep.sh │ ├── connect.sh │ ├── dsa_ssh2.prv │ ├── dsa_ssh2.pub │ ├── dynamic-forward.sh │ ├── envpass.sh │ ├── exit-status.sh │ ├── forcecommand.sh │ ├── forwarding.sh │ ├── host-expand.sh │ ├── kextype.sh │ ├── key-options.sh │ ├── keygen-change.sh │ ├── keygen-convert.sh │ ├── keyscan.sh │ ├── keytype.sh │ ├── localcommand.sh │ ├── login-timeout.sh │ ├── multiplex.sh │ ├── portnum.sh │ ├── proto-mismatch.sh │ ├── proto-version.sh │ ├── proxy-connect.sh │ ├── putty-ciphers.sh │ ├── putty-kex.sh │ ├── putty-transfer.sh │ ├── reconfigure.sh │ ├── reexec.sh │ ├── rekey.sh │ ├── rsa_openssh.prv │ ├── rsa_openssh.pub │ ├── rsa_ssh2.prv │ ├── runtests.sh │ ├── scp-ssh-wrapper.sh │ ├── scp.sh │ ├── sftp-badcmds.sh │ ├── sftp-batch.sh │ ├── sftp-cmds.sh │ ├── sftp-glob.sh │ ├── sftp.sh │ ├── ssh-com-client.sh │ ├── ssh-com-keygen.sh │ ├── ssh-com-sftp.sh │ ├── ssh-com.sh │ ├── ssh2putty.sh │ ├── sshd-log-wrapper.sh │ ├── stderr-after-eof.sh │ ├── stderr-data.sh │ ├── t4.ok │ ├── t5.ok │ ├── test-exec.sh │ ├── transfer.sh │ ├── try-ciphers.sh │ └── yes-head.sh ├── rijndael.c ├── rijndael.h ├── roaming.h ├── roaming_client.c ├── roaming_common.c ├── roaming_dummy.c ├── roaming_serv.c ├── rsa.c ├── rsa.h ├── sandbox-darwin.c ├── sandbox-null.c ├── sandbox-rlimit.c ├── sandbox-systrace.c ├── schnorr.c ├── schnorr.h ├── scp.0 ├── scp.1 ├── scp.c ├── servconf.c ├── servconf.h ├── serverloop.c ├── serverloop.h ├── session.c ├── session.h ├── sftp-client.c ├── sftp-client.h ├── sftp-common.c ├── sftp-common.h ├── sftp-glob.c ├── sftp-server-main.c ├── sftp-server.0 ├── sftp-server.8 ├── sftp-server.c ├── sftp.0 ├── sftp.1 ├── sftp.c ├── sftp.h ├── ssh-add.0 ├── ssh-add.1 ├── ssh-add.c ├── ssh-agent.0 ├── ssh-agent.1 ├── ssh-agent.c ├── ssh-dss.c ├── ssh-ecdsa.c ├── ssh-gss.h ├── ssh-keygen.0 ├── ssh-keygen.1 ├── ssh-keygen.c ├── ssh-keyscan.0 ├── ssh-keyscan.1 ├── ssh-keyscan.c ├── ssh-keysign.0 ├── ssh-keysign.8 ├── ssh-keysign.c ├── ssh-pkcs11-client.c ├── ssh-pkcs11-helper.0 ├── ssh-pkcs11-helper.8 ├── ssh-pkcs11-helper.c ├── ssh-pkcs11.c ├── ssh-pkcs11.h ├── ssh-rsa.c ├── ssh-sandbox.h ├── ssh.0 ├── ssh.1 ├── ssh.c ├── ssh.h ├── ssh1.h ├── ssh2.h ├── ssh_config ├── ssh_config.0 ├── ssh_config.5 ├── sshconnect.c ├── sshconnect.h ├── sshconnect1.c ├── sshconnect2.c ├── sshd.0 ├── sshd.8 ├── sshd.c ├── sshd_config ├── sshd_config.0 ├── sshd_config.5 ├── sshlogin.c ├── sshlogin.h ├── sshpty.c ├── sshpty.h ├── sshtty.c ├── survey.sh.in ├── ttymodes.c ├── ttymodes.h ├── uidswap.c ├── uidswap.h ├── umac.c ├── umac.h ├── uuencode.c ├── uuencode.h ├── version.h ├── xmalloc.c └── xmalloc.h └── pyclient ├── README ├── SocksiPy ├── BUGS ├── LICENSE ├── README └── socks.py ├── psi_api.py ├── psi_client.dat ├── psi_client.py ├── psi_ssh_connection.py ├── server_list └── update.py /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | *.obj 5 | *.elf 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Libraries 12 | *.lib 13 | *.a 14 | *.la 15 | *.lo 16 | 17 | # Shared objects (inc. Windows DLLs) 18 | *.dll 19 | *.so 20 | *.so.* 21 | *.dylib 22 | 23 | # Executables 24 | *.exe 25 | *.out 26 | *.app 27 | *.i*86 28 | *.x86_64 29 | *.hex 30 | 31 | # Debug files 32 | *.dSYM/ 33 | -------------------------------------------------------------------------------- /delegate9.9.13/COPYRIGHT: -------------------------------------------------------------------------------- 1 | /*//////////////////////////////////////////////////////////////////////// 2 | Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI 3 | Copyright (c) 2001-2014 National Institute of Advanced Industrial Science and Technology (AIST) 4 | AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443 5 | ////////////////////////////////////////////////////////////////////////*/ 6 | -------------------------------------------------------------------------------- /delegate9.9.13/CREDITS: -------------------------------------------------------------------------------- 1 | 3963914092 25093 CREDITS 2 | -------------------------------------------------------------------------------- /delegate9.9.13/DELEGATE_CONF.vce: -------------------------------------------------------------------------------- 1 | ADMIN=ysato@delegate.org 2 | #CFLAGS=-O2 -MT -D_USE_32BIT_TIME_T -DARM -D_ARM_ -DUNDER_CE -DUNICODE 3 | CFLAGS=-O2 -MT -D_USE_32BIT_TIME_T -DARM -D_ARM_ -DUNDER_CE -I../include-ce -I../../include-ce 4 | #### AR added automatically #### 5 | AR=ar 6 | HOSTCC=hostcc.bat 7 | HOSTCFLAGS= 8 | LDOPTS=-subsystem:windowsce -NODEFAULTLIB:oldnames.lib coredll.lib corelibc.lib 9 | XEMBED = ..\xembed.exe 10 | XTARGET = wince-dg.exe 11 | -------------------------------------------------------------------------------- /delegate9.9.13/bin/Makefile: -------------------------------------------------------------------------------- 1 | FILES = Makefile \ 2 | README \ 3 | expire \ 4 | go-far \ 5 | dmosaic \ 6 | dwhois 7 | 8 | files:; ls -d $(FILES) 9 | -------------------------------------------------------------------------------- /delegate9.9.13/bin/README: -------------------------------------------------------------------------------- 1 | 2 | Rewrite the variables in the scripts here before you use them. 3 | 4 | go-far ... DHOST, DPORT, and GOPHER 5 | dmosaic ... DHOST, DPORT, and MOSAIC 6 | dwhois ... DFLTSERV 7 | -------------------------------------------------------------------------------- /delegate9.9.13/bin/dmosaic: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Mosaic/DeleGate March 1994 4 | # 5 | 6 | DHOST=etlcom 7 | DPORT=2080 8 | MOSAIC=Jmosaic 9 | 10 | # 11 | # 12 | # 13 | 14 | DELEGATE="$DHOST:$DPORT" 15 | DELEGATE_URL="s#//#//$DELEGATE/=@=:#" 16 | MYNAME=`basename $0` 17 | 18 | STDHOME="http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/NCSAMosaicHome.html" 19 | 20 | if [ "$1" != "" ]; then 21 | HOMEPAGE="$1" 22 | else 23 | if [ "$HOMEPAGE" = "" ]; then 24 | HOMEPAGE=$STDHOME 25 | fi 26 | fi 27 | 28 | echo ">>>>>>>> $MYNAME: DeleGated Mosaic <<<<<<<<" 29 | echo "-- DELEGATE=$DELEGATE" 30 | echo "-- MOSAIC=$MOSAIC" 31 | echo "-- HOMEPAGE=$HOMEPAGE $*" 32 | HOMEPAGE=`echo $HOMEPAGE | sed $DELEGATE_URL` 33 | exec $MOSAIC "$HOMEPAGE" $* 34 | -------------------------------------------------------------------------------- /delegate9.9.13/bin/dwhois: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DFLTSERV=whois.nic.ad.jp 4 | 5 | if [ "${DELEGATE=}" = "" ]; then 6 | echo "set DELEGATE environment variable to the DeleGate for Whois Proxy." 7 | exit 1 8 | fi 9 | 10 | if [ "$1" = "-h" ]; then 11 | shift 12 | HOST=$1 13 | shift 14 | else 15 | HOST=$DFLTSERV 16 | fi 17 | 18 | echo whois -h $DELEGATE "whois://$HOST?$*" 19 | whois -h $DELEGATE "whois://$HOST?$*" 20 | -------------------------------------------------------------------------------- /delegate9.9.13/dgcaps.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /delegate9.9.13/doc/Makefile: -------------------------------------------------------------------------------- 1 | FILES = Makefile \ 2 | Manual.htm \ 3 | HowToDG.html \ 4 | jpconv.htm \ 5 | tutor-jp.htm \ 6 | tutor-en.htm 7 | 8 | # readme1.X.jp \ 9 | # delegate-ML.jp \ 10 | # SecurityNotice.jp \ 11 | # withSOCKS.jp \ 12 | # ProxyTelnetFtp.jp 13 | 14 | files:; ls -d $(FILES) 15 | -------------------------------------------------------------------------------- /delegate9.9.13/gates/Gates_Win32.c: -------------------------------------------------------------------------------- 1 | const char *SIGN_Gates_Win32_c="{FILESIGN=Gates_Win32.c:20141031194211+0900:29af5fcce28b073c:Author@DeleGate.ORG:Mls1XqSzY8Y9estOTI9rP+6MArh1wnBIF4xg2GogsHM7G5acSegKBB1vRUvsL8D+rDrupv8rvQcaN3rSF5Rb2Y8SuaRsLLpeolc2jBJlTyl0kDrEr7jzcGWPlodx0TxyMX+OhbPwBsw/CCasGzZduMY57u/Scv3RiTlQgYZgdMg=}"; 2 | 3 | /*//////////////////////////////////////////////////////////////////////// 4 | Copyright (c) 2014 Yutaka Sato 5 | ////////////////////////////////////////////////////////////////////////// 6 | Content-Type: program/C; charset=US-ASCII 7 | Program: Gates_Win32.c 8 | Author: Yutaka Sato 9 | Description: 10 | History: 11 | 141026 created 12 | //////////////////////////////////////////////////////////////////////#*/ 13 | /* '"DIGEST-OFF"' */ 14 | 15 | -------------------------------------------------------------------------------- /delegate9.9.13/gen/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/gen/README -------------------------------------------------------------------------------- /delegate9.9.13/id.shtml: -------------------------------------------------------------------------------- 1 |
2 |

3 | 
4 | 
5 | 
6 | sendFd: 
7 | 
8 |
9 | -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/aclapi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/aclapi.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/crtdbg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/crtdbg.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/direct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/direct.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/errno.h: -------------------------------------------------------------------------------- 1 | int *_errno(); 2 | #define errno *_errno() 3 | #define ENOENT 2 4 | #define ESRCH 3 5 | #define EINTR 4 6 | #define EBADF 9 7 | #define ECHILD 10 8 | #define EAGAIN 11 9 | #define ENOMEM 12 10 | #define EACCES 13 11 | #define ENOSPC 28 12 | #define EPIPE 32 13 | -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/fcntl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/fcntl.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/process.h: -------------------------------------------------------------------------------- 1 | #define _set_invalid_parameter_handler(f) 2 | void *GetProcAddress(HMODULE,const char*); 3 | extern "C" { 4 | int getpid(); 5 | } 6 | int system(const char*); 7 | int execvp(const char*,char *const*); 8 | int execl(const char*,...); 9 | int _execvp(const char*,const char *[1024]); 10 | 11 | #define _P_WAIT 0 12 | #define _P_NOWAIT 1 13 | int _spawnvpe(int,const char*,const char *const[],const char *const[]); 14 | 15 | /* 16 | typedef void (*sigFunc)(int); 17 | sigFunc signal(int,sigFunc); 18 | */ 19 | -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/share.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/share.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/signal.h: -------------------------------------------------------------------------------- 1 | #define SIGABRT 1 2 | #define SIGSEGV 2 3 | #define SIGTERM 3 4 | #define SIGINT 4 5 | 6 | typedef void (*sigFunc)(int); 7 | sigFunc signal(int,sigFunc); 8 | #define SIG_DFL 0 9 | #define SIG_IGN 0 10 | -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/sys/locking.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/sys/locking.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/sys/stat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/sys/stat.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/sys/timeb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/sys/timeb.h -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/sys/types.h: -------------------------------------------------------------------------------- 1 | typedef long int off_t; 2 | typedef long int __time32_t; 3 | -------------------------------------------------------------------------------- /delegate9.9.13/include-ce/winsvc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/include-ce/winsvc.h -------------------------------------------------------------------------------- /delegate9.9.13/include/_typedefs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * type definitions 3 | */ 4 | -------------------------------------------------------------------------------- /delegate9.9.13/include/bldsign.h: -------------------------------------------------------------------------------- 1 | #define BUILT_SRCSIGN "" 2 | -------------------------------------------------------------------------------- /delegate9.9.13/include/dgctx.h: -------------------------------------------------------------------------------- 1 | #ifndef _DGCTX_H 2 | #define _DGCTX_H 3 | 4 | #ifndef DGCTX 5 | #define DGCtx DGCtx00 6 | typedef struct DGCtx DGC; 7 | #define DGCTX DGC* 8 | #endif 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /delegate9.9.13/include/mkdef: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | OUT=$1 4 | CC=$2 5 | 6 | TYP1="socklen_t" 7 | NAM1="DEFINED_type_$TYP1" 8 | DEF1="typedef char $TYP1;" 9 | 10 | $CC -DTypeDef="$DEF1" -Dtesting_DEFINED typedefs.c >> errors 2>&1 11 | if [ $? != 0 ]; then echo "#define $NAM1" >> $OUT; fi 12 | -------------------------------------------------------------------------------- /delegate9.9.13/include/mysgTTy.h: -------------------------------------------------------------------------------- 1 | #ifndef _SGTTY_H 2 | #define _SGTTY_H 3 | const char *sgTTyType(); 4 | int getTTySize(int fd,int *width,int *height); 5 | int setTTySize(int fd,int width,int height); 6 | int setTTyMode(int fd,const char *mode); 7 | int getTTyStat(int fd,void *sg,int sz); 8 | int setTTyStat(int fd,void *sg,int sz); 9 | int issetTTyMode(void *sg,const char *mode); 10 | int getTTyMode(int fd,const char *mode); 11 | int sendTTySize(FILE *ts,int col,int row); 12 | void *dumpTTyStat(int fd); 13 | int restoreTTyStat(int fd,void *sg); 14 | int freeTTyStat(void *sg); 15 | #endif 16 | -------------------------------------------------------------------------------- /delegate9.9.13/include/passwd.h: -------------------------------------------------------------------------------- 1 | #ifndef _PWD_H 2 | #define _PWD_H 3 | struct passwd { 4 | const char *pw_name; 5 | const char *pw_passwd; 6 | short pw_uid; 7 | short pw_gid; 8 | int pw_quota; 9 | const char *pw_comment; 10 | const char *pw_gecos; 11 | const char *pw_dir; 12 | const char *pw_shell; 13 | }; 14 | #endif 15 | 16 | #ifndef _GRP_H 17 | #define _GRP_H 18 | struct group { 19 | const char *gr_name; 20 | const char *gr_passwd; 21 | int gr_gid; 22 | const char **gr_mem; 23 | }; 24 | #endif 25 | -------------------------------------------------------------------------------- /delegate9.9.13/include/sysconf.h: -------------------------------------------------------------------------------- 1 | #include "ccenv.h" 2 | 3 | #if defined(__APPLE__) \ 4 | || defined(__linux__) \ 5 | || defined(__FreeBSD__) && defined(DG_LIB_pthread) \ 6 | || defined(__OpenBSD__) && defined(DG_LIB_pthread) \ 7 | || defined(__NetBSD__) && defined(DG_LIB_pthread) \ 8 | || defined(sun) && defined(DG_LIB_pthread) \ 9 | /* with the pthread library */ 10 | #define DG_WITH_PTHREAD 11 | #endif 12 | -------------------------------------------------------------------------------- /delegate9.9.13/include/typedefs.c: -------------------------------------------------------------------------------- 1 | #include "vsocket.h" 2 | 3 | TypeDef 4 | 5 | int main(int ac, char *av[]){} 6 | -------------------------------------------------------------------------------- /delegate9.9.13/include/yalloca.h: -------------------------------------------------------------------------------- 1 | #ifndef _YALLOCA_H 2 | #define _YALLOCA_H 3 | 4 | typedef struct { 5 | char *s_sp0; 6 | const char *s_what; 7 | int (*s_func)(const void*,...); 8 | char *s_av[6]; 9 | int s_size; 10 | int s_unit; 11 | int s_count; 12 | int s_trace; 13 | int s_level; 14 | char *s_top; 15 | } AllocaArg; 16 | 17 | int alloca_call(AllocaArg *ap); 18 | 19 | #define STACK1 128 20 | 21 | #endif /* _YALLOCA_H */ 22 | -------------------------------------------------------------------------------- /delegate9.9.13/include/yarg.h: -------------------------------------------------------------------------------- 1 | #ifndef _YARG_H 2 | #define _YARG_H 3 | 4 | typedef int (*iFUNCP)(const void*,...); 5 | typedef void (*vFUNCP)(void*,...); 6 | typedef char *(*sFUNCP)(void*,...); 7 | 8 | #include 9 | #define VARGS(ac,a0) \ 10 | char *va[ac]; va_list ap; va_start(ap,a0); \ 11 | { int ai; for(ai = 0; ai < ac; ai++) va[ai] = va_arg(ap,char*); } 12 | 13 | #define VA4 va[0],va[1],va[2],va[3] 14 | 15 | #define VA8 va[0],va[1],va[2],va[3],va[4],va[5],va[6],va[7] 16 | 17 | #define VA14 va[0],va[1],va[2],va[3],\ 18 | va[4],va[5],va[6],va[7],\ 19 | va[8],va[9],va[10],va[11],va[12],va[13] 20 | 21 | #define VA16 va[0],va[1],va[2],va[3],\ 22 | va[4],va[5],va[6],va[7],\ 23 | va[8],va[9],va[10],va[11],\ 24 | va[12],va[13],va[14],va[15] 25 | 26 | #endif /* _YARG_H */ 27 | -------------------------------------------------------------------------------- /delegate9.9.13/include/yselect.h: -------------------------------------------------------------------------------- 1 | #ifndef _YSELECT_H 2 | #define _YSELECT_H 3 | 4 | #ifndef FD_SETSIZE 5 | #include 6 | #ifndef FD_SETSIZE 7 | #ifdef _MSC_VER 8 | #include "ywinsock.h" 9 | #else 10 | #include 11 | #ifndef FD_SETSIZE 12 | #include 13 | #endif 14 | #endif 15 | #endif 16 | #endif 17 | 18 | #ifdef FD_SET 19 | typedef fd_set FdSet; 20 | #else 21 | typedef int FdSet; 22 | #define FD_ZERO(fdset) ((*fdset) = 0) 23 | #define FD_SET(fd,fdset) ((*fdset) |= (1 << fd)) 24 | #define FD_ISSET(fd,fdset) (((*fdset) & (1 << fd)) != 0) 25 | #endif 26 | 27 | #ifndef FD_SETSIZE 28 | #define FD_SETSIZE 32 29 | #endif 30 | 31 | #if defined(FD_SETSIZE) && 2048 < FD_SETSIZE 32 | #undef FD_SETSIZE 33 | #define FD_SETSIZE 2048 34 | #endif 35 | 36 | #endif /* _YSELECT_H */ 37 | -------------------------------------------------------------------------------- /delegate9.9.13/include/ysignal.h: -------------------------------------------------------------------------------- 1 | #ifndef _YSIGNAL_H 2 | #define _YSIGNAL_H 3 | /* 9.9.4 MTSS */ 4 | 5 | typedef struct { 6 | int s_set; 7 | int s_mask; 8 | } SSigMask; 9 | 10 | extern int cnt_SSigMask; 11 | 12 | int set_SSigMask(SSigMask *sMask,int force); 13 | #define setSSigMask(sMask) set_SSigMask(&sMask,0) 14 | #define setSSigMaskX(sMask,force) set_SSigMask(&sMask,force) 15 | 16 | int reset_SSigMask(SSigMask *sMask); 17 | #define resetSSigMask(sMask) reset_SSigMask(&sMask) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /delegate9.9.13/include/ywinsock.h: -------------------------------------------------------------------------------- 1 | #ifndef FD_SETSIZE 2 | #if UNDER_CE 3 | #define FD_SETSIZE 64 4 | #else 5 | #define FD_SETSIZE 256 6 | #endif 7 | #include 8 | #include 9 | #endif 10 | 11 | struct hostent *gethostbyname2(const char *name,int af); 12 | int Inet_pton(int af,const char *src,void *dst); 13 | #define inet_pton(af,src,dst) Inet_pton(af,src,dst) 14 | -------------------------------------------------------------------------------- /delegate9.9.13/lib/README: -------------------------------------------------------------------------------- 1 | libdelegate.a -- DeleGate functions 2 | libmimekit.a -- MIME encoder/decoder 3 | library.a -- Libraries :-) 4 | libresolvy.a -- Resolver with file, NIS and DNS 5 | libsubst.a -- Compatibility functions 6 | libcfi.a -- External filters 7 | libmd5.a -- MD5 8 | -------------------------------------------------------------------------------- /delegate9.9.13/link-libs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | CYGLIB=/cygdrive/d/cygwin/lib/w32api 4 | if [ -d $CYGLIB ]; then 5 | cd lib 6 | ln -s $CYGLIB/libadvapi32.a . 7 | ln -s $CYGLIB/libshell32.a . 8 | ln -s $CYGLIB/libuser32.a . 9 | ln -s $CYGLIB/libkernel32.a . 10 | fi 11 | 12 | exit 0 13 | -------------------------------------------------------------------------------- /delegate9.9.13/link-win32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #env | grep Program | sort 4 | 5 | echo "#### MAKE_WIN32=$MAKE_WIN32" 6 | if [ "$MAKE_WIN32" = "" ]; then 7 | echo "#### MAKE_WIN32=$MAKE_WIN32 NO" 8 | exit 0 9 | fi 10 | 11 | echo "#### MAKE_WIN32=$MAKE_WIN32 DO" 12 | set -x 13 | 14 | #rc /v /r /fo win32-dg.res win32-dg.rc 15 | 16 | "C:/Program Files/Microsoft Visual Studio 8/VC/bin/link.exe" \ 17 | /subsystem:windows \ 18 | /out:win32-dg.exe \ 19 | delegated.o builtin.o commands.o croncom.o remote.o \ 20 | ../lib/libdelegate.a ../lib/libresolvy.a ../lib/libteleport.a \ 21 | ../lib/libmd5.a ../lib/libregex.a ../lib/libcfi.a ../lib/library.a \ 22 | ../lib/libmimekit.a ../lib/libfsx.a ../lib/libsubst.a \ 23 | win32-dg.res \ 24 | WS2_32.LIB ADVAPI32.LIB OLE32.LIB SHELL32.LIB UUID.LIB \ 25 | USER32.LIB GDI32.LIB 26 | 27 | echo "#### win32-dg.exe ####" 28 | ./dg.exe -Fesign -s -w win32-dg.exe 29 | ls -l win32-dg.exe 30 | -------------------------------------------------------------------------------- /delegate9.9.13/link-win32_win8.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #env | grep Program | sort 4 | 5 | echo "#### MAKE_WIN32=$MAKE_WIN32" 6 | if [ "$MAKE_WIN32" = "" ]; then 7 | echo "#### MAKE_WIN32=$MAKE_WIN32 NO" 8 | exit 0 9 | fi 10 | 11 | echo "#### MAKE_WIN32=$MAKE_WIN32 DO" 12 | set -x 13 | 14 | #rc /v /r /fo win32-dg.res win32-dg.rc 15 | 16 | "C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/link.exe" \ 17 | /subsystem:windows \ 18 | /out:win32-dg.exe \ 19 | delegated.o builtin.o commands.o croncom.o remote.o \ 20 | ../lib/libdelegate.a ../lib/libgates.a ../lib/libresolvy.a ../lib/libteleport.a \ 21 | ../lib/libmd5.a ../lib/libregex.a ../lib/libcfi.a ../lib/library.a \ 22 | ../lib/libmimekit.a ../lib/libfsx.a ../lib/libsubst.a \ 23 | win32-dg.res \ 24 | WS2_32.LIB ADVAPI32.LIB OLE32.LIB SHELL32.LIB UUID.LIB \ 25 | USER32.LIB GDI32.LIB 26 | 27 | echo "#### win32-dg.exe ####" 28 | ./dg.exe -Fesign -s -w win32-dg.exe 29 | ls -l win32-dg.exe 30 | -------------------------------------------------------------------------------- /delegate9.9.13/make-fin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | MYARC=`uname`" "`hostname` 4 | if [ "$XCCDG" != "" ]; then 5 | XXCC=":XCC-$XCCDG" 6 | else 7 | XXCC=":" 8 | fi 9 | 10 | if [ "$DGMAKE" = "verbose" ]; then 11 | echo "#ck_builtin:" \ 12 | `wc src/_builtin.c|awk '{print $1 " " $2 " " $3'}` \ 13 | `cksum src/_builtin.c|awk '{print $1}'` \ 14 | "$XXCC $MYARC" 15 | fi 16 | 17 | #src/delegated -Fseltest 18 | #cc -DMAIN -Iinclude maker/_-sgTTy.c -o sgTTy 19 | 20 | exit 0 21 | -------------------------------------------------------------------------------- /delegate9.9.13/make-init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "y" = "x" ]; then 4 | make clean 5 | echo "##CLEAN ["`hostname`"][$HTTP_HOST] "`pwd` 6 | exit 1 7 | fi 8 | 9 | #make clean 10 | #rm */Makefile.go 11 | 12 | rm -f src/_builtin.c 13 | rm -f src/builtin.o 14 | rm -f src/version.o 15 | rm -f src/conf.o 16 | rm -f gen/bldsign.h 17 | 18 | exit 0 19 | rm src/log.o 20 | (cd src; make clean) 21 | touch src/version.c 22 | rm lib/library.a 23 | touch rary/nbio.c 24 | touch src/sox.c 25 | touch src/master.c 26 | rm maker/.cksum.p2lla.c 27 | rm maker/.cksum.p2llb.c 28 | rm src/builtin/icons/ysato/frog9*ico 29 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/ERR_error_string_n.c: -------------------------------------------------------------------------------- 1 | char *ERR_error_string_n(int code,char str[],int siz) 2 | { 3 | *str = 0; 4 | return str; 5 | } 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/FMODE.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #if defined(O_BINARY) && !defined(__CYGWIN__) 5 | #include 6 | void setBinaryIO(){ _fmode = O_BINARY; } 7 | #else 8 | void setBinaryIO(){ } 9 | #endif 10 | 11 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/Gates_Win32.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | int validateLicense(PCStr(path),PCStr(date)){ 4 | fprintf(stderr,"---- ---- ---- NO LICENSE TO RUN AS A SERVICE\n"); 5 | fprintf(stderr,"---- ---- ---- %s\n",path); 6 | return -1; 7 | } 8 | int putServiceArgs(PCStr(execpath),PCStr(servname),int ac,const char *av[]){ 9 | validateLicense(execpath,__DATE__); 10 | return -1; 11 | } 12 | int getServiceArgsX(int argc,char *argv[],const char *av[],int an){ 13 | validateLicense(argv[0],__DATE__); 14 | return -1; 15 | } 16 | int getImpKey(PCStr(exec),PVStr(ekey)){ 17 | return -1; 18 | } 19 | int putImpKey(PCStr(exec),PCStr(ekey)){ 20 | return -1; 21 | } 22 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/RSA_generate_key.c: -------------------------------------------------------------------------------- 1 | void *RSA_generate_key(){ 2 | return 0; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/SSL_CTX_set_tmp_rsa_callback.c: -------------------------------------------------------------------------------- 1 | int SUBST_SSL_CTX = 1; 2 | 3 | #define SSL_CTRL_SET_TMP_RSA_CB 4 4 | void SSL_CTX_ctrl(int,int,int,void(*)()); 5 | void SSL_CTX_set_tmp_rsa_callback(int ctx,void (*tmprsa_callback)()) 6 | { 7 | SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_RSA_CB,0,tmprsa_callback); 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/SSL_library_init.c: -------------------------------------------------------------------------------- 1 | int SUBST_Library = 1; 2 | 3 | int SSLeay_add_ssl_algorithms(); 4 | int SSL_library_init() 5 | { 6 | return SSLeay_add_ssl_algorithms(); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/SSL_set_SSL_CTX.c: -------------------------------------------------------------------------------- 1 | int porting_dbg(const char *fmt,...); 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | int SSL_get_servername_NONE = 1; 6 | 7 | typedef void SSL; 8 | typedef void SSL_CTX; 9 | const char *SSL_get_servername(const SSL *s, const int type){ 10 | porting_dbg("## SSL_get_servername() NONE\n"); 11 | return 0; 12 | } 13 | int SSL_get_servername_type(const SSL *s){ 14 | porting_dbg("## SSL_get_servername_type() NONE\n"); 15 | return 0; 16 | } 17 | SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx){ 18 | porting_dbg("## SSL_set_SSL_CTX() NONE\n"); 19 | return 0; 20 | } 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/Stty.c: -------------------------------------------------------------------------------- 1 | #include 2 | const char *SttyType(){ 3 | return "none"; 4 | } 5 | int Stty(int fd,const char *mode){ 6 | errno = 0; 7 | return -1; 8 | } 9 | int Gtty(int fd,const char *mode){ 10 | return -1; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-fcloseFILE.c: -------------------------------------------------------------------------------- 1 | const char *type_fcloseFILE = "A"; 2 | #include 3 | #include "ystring.h" /* for fclose() with mutex with free() */ 4 | /* 5 | * fclose(FILE *fp) without closing fileno(FILE *fp) 6 | */ 7 | 8 | #if isWindows() 9 | #define setInvalidFd(fp) fp->_file = open("null",0) 10 | #else 11 | #define setInvalidFd(fp) fp->_file = -1 12 | #endif 13 | 14 | int FL_fcloseFILE(FL_PAR,FILE *fp){ 15 | int fd = fileno(fp); 16 | fflush(fp); 17 | #if 1 18 | setInvalidFd(fp); 19 | #else 20 | if( isWindows() ){ 21 | fp->_file = open("nul",0); 22 | }else 23 | fp->_file = -1; 24 | #endif 25 | fclose(fp); 26 | return fd; 27 | } 28 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-fcloseFILE2.c: -------------------------------------------------------------------------------- 1 | const char *type_fcloseFILE = "B"; 2 | #include 3 | #include "ystring.h" 4 | /* 5 | * fclose(FILE *fp) without closing fileno(FILE *fp) 6 | */ 7 | int FL_fcloseFILE(FL_PAR,FILE *fp){ 8 | int fd = fileno(fp); 9 | fflush(fp); 10 | fp->_fileno = -1; 11 | fclose(fp); 12 | return fd; 13 | } 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-fcntl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int lock_ext = 0; 4 | 5 | static struct flock flocksh = { F_RDLCK }; 6 | static struct flock flockex = { F_WRLCK }; 7 | static struct flock flockun = { F_UNLCK }; 8 | 9 | int SHlockB(int fd){ return fcntl(fd,F_SETLKW,&flocksh); } 10 | int SHlockNB(int fd){ return fcntl(fd,F_SETLK, &flocksh); } 11 | int EXlockB(int fd){ return fcntl(fd,F_SETLKW,&flockex); } 12 | int EXlockNB(int fd){ return fcntl(fd,F_SETLK, &flockex); } 13 | int UNlock(int fd){ return fcntl(fd,F_SETLK, &flockun); } 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-fgetpos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "file.h" 3 | 4 | int Fgetpos(FILE *fp,Fpos_t *pos){ 5 | return fgetpos(fp,(fpos_t*)pos); 6 | } 7 | int Fsetpos(FILE *fp,Fpos_t *pos){ 8 | return fsetpos(fp,(fpos_t*)pos); 9 | } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-forkpty.c: -------------------------------------------------------------------------------- 1 | /* maybe in Linux */ 2 | #include 3 | #include 4 | #include 5 | int _ForkptyX(int *pty,char *name,void *mode,void *size){ 6 | int pid; 7 | pid = forkpty(pty,name,(struct termios*)mode,(struct winsize*)size); 8 | return pid; 9 | } 10 | int _Forkpty(int *pty,char *name){ 11 | return _ForkptyX(pty,name,0,0); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-fseeko.c: -------------------------------------------------------------------------------- 1 | #ifdef __osf__ 2 | OSF/1 does not have it, but -DNONCPLUS lets this file be compled successfully 3 | #endif 4 | 5 | #include "ystring.h" 6 | 7 | int Fseeko(FILE *fp,FileSize off,int whence){ 8 | return fseeko(fp,off,whence); 9 | } 10 | FileSize Ftello(FILE *fp){ 11 | return ftello(fp); 12 | } 13 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-mkfifo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int Mkfifo(const char *path,int mode){ 5 | return mkfifo(path,mode); 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-pthread_create.c: -------------------------------------------------------------------------------- 1 | /* for __osf__ even with mkcpp */ 2 | #include "__pthread_create.c" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-ptrace.c: -------------------------------------------------------------------------------- 1 | #include "ptrace.c" 2 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-regex.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | const char *RegexVer(){ 6 | return "regex"; 7 | } 8 | void *Regcomp(const char *pat,int flag){ 9 | regex_t re; 10 | regex_t *rre; 11 | int rcode; 12 | 13 | rcode = regcomp(&re,pat,flag); 14 | if( rcode == 0 ){ 15 | rre = (regex_t*)malloc(sizeof(re)); 16 | *rre = re; 17 | return (void*)rre; 18 | } 19 | return 0; 20 | } 21 | int Regexec(void *re,const char *str,int nm,int so,int eo,int flag){ 22 | int rcode; 23 | regmatch_t rm; 24 | 25 | rm.rm_so = so; 26 | rm.rm_eo = eo; 27 | rcode = regexec((regex_t*)re,str,nm,&rm,flag); 28 | return rcode; 29 | } 30 | void Regfree(void *re){ 31 | regfree((regex_t*)re); 32 | } 33 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-setferror.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "ystring.h" 4 | int getNullFd(const char *what); 5 | 6 | int setferror(const char *F,int L,FILE *fp){ 7 | int fd,sfd,nfd; 8 | 9 | sfd = nfd = -1; 10 | fd = fileno(fp); 11 | #if defined(_IOERR) 12 | fp->_flag |= _IOERR; 13 | #else 14 | #if defined(_IO_ERR_SEEN) 15 | fp->_flags |= _IO_ERR_SEEN; 16 | #else 17 | #if defined(__SERR) 18 | fp->_flags |= __SERR; 19 | #else 20 | sfd = dup(fd); 21 | nfd = getNullFd("Setferror"); 22 | dup2(nfd,fd); 23 | fputc(0,fp); 24 | fflush(fp); 25 | dup2(sfd,fd); 26 | close(sfd); 27 | #endif 28 | #endif 29 | #endif 30 | porting_dbg("## Setferror(%X/%d,%d,%d)%X %s:%d",p2i(fp),fd, 31 | sfd,nfd,ferror(fp),F,L); 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-statvfs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * statvfs() is available but the specification mismatches with __statvfs.c 3 | */ 4 | #include "statvfs.c" 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-strcasestr.c: -------------------------------------------------------------------------------- 1 | #if !defined(__osf__) && !defined(_MSC_VER) && !defined(__sun__) \ 2 | && !defined(__CYGWIN__) \ 3 | && !defined(_AIX) \ 4 | && !defined(__hpux__) \ 5 | && !defined(__hpux) 6 | int SUBST_strcasestr = 0; 7 | #include 8 | char *Strcasestr(const char *s1,const char *s2){ 9 | return strcasestr(s1,s2); 10 | } 11 | #endif 12 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-sysconf.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | #if defined(__hpux) 4 | #include 5 | #include 6 | FileSize getSysinfo(const char *name){ 7 | struct pst_static pst; 8 | struct pst_static dyn; 9 | 10 | if( pstat_getstatic(&pst,sizeof(pst),1,0) != 0 ){ 11 | return -1; 12 | } 13 | if( strcmp(name,"totalmem") == 0 ){ 14 | return pst.page_size * pst.physical_memory; 15 | } 16 | 17 | if( pstat_getdynamic(&dyn,sizeof(dyn),1,0) != 0 ){ 18 | return -1; 19 | } 20 | if( strcmp(name,"freemem") == 0 ){ 21 | return pst.page_size * dyn.psd_free; 22 | } 23 | return -1; 24 | } 25 | #endif 26 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-sysconf2.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | FileSize getSysinfo(const char *name){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-sysinfo.c: -------------------------------------------------------------------------------- 1 | #if defined(__osf__) 2 | /* 3 | * long sysinfo(int command,char *buf,long count); 4 | */ 5 | #include 6 | #include "ystring.h" 7 | FileSize getSysinfo(const char *name){ 8 | char buf[256]; 9 | if( sysinfo(SI_SYSNAME,buf,sizeof(buf)) != 0 ){ 10 | return -1; 11 | } 12 | if( strcmp(name,"totalmem") == 0 ){ 13 | return -1; 14 | } 15 | if( strcmp(name,"freemem") == 0 ){ 16 | return -1; 17 | } 18 | return -1; 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_-system.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | #ifndef _MSC_VER 4 | int unix_system(PCStr(com)); 5 | extern "C" { 6 | int system(PCStr(com)){ 7 | return unix_system(com); 8 | } 9 | } 10 | #endif 11 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/___spawnvp.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _P_NOWAIT 4 | #ifndef P_NOWAIT 5 | #define P_NOWAIT _P_NOWAIT 6 | #endif 7 | #endif 8 | 9 | #ifdef _P_WAIT 10 | #ifndef P_WAIT 11 | #define P_WAIT _P_WAIT 12 | #endif 13 | #endif 14 | 15 | int INHERENT_spawn(){ return 1; } 16 | int SPAWN_P_NOWAIT = P_NOWAIT; 17 | int SPAWN_P_WAIT = P_WAIT; 18 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__alloca.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "yalloca.h" 4 | #include "ystring.h" 5 | 6 | int alloca_call(AllocaArg *ap) 7 | { char *buff; 8 | int size; 9 | int rcode; 10 | void *bp; 11 | 12 | buff = (char*)alloca(ap->s_size * ap->s_unit); 13 | if( buff == NULL ){ 14 | porting_dbg("#### FATAL: alloca_call() failed (no more stack)"); 15 | exit(-1); 16 | } 17 | bp = addStrBuffer(ap->s_level,buff,ap->s_size*ap->s_unit); 18 | markStackBase(bp); 19 | 20 | if( ap->s_trace ){ 21 | size = ap->s_sp0 - buff; 22 | porting_dbg("%s (%4d) = %5d [%08X - %08X]", 23 | ap->s_what,ap->s_size,size,p2i((char*)&ap),p2i(ap->s_sp0)); 24 | } 25 | buff = 0; 26 | size = 0; 27 | rcode = (*ap->s_func)(ap->s_av[0],ap->s_av[1],ap->s_av[2],ap->s_av[3], 28 | ap->s_av[4],ap->s_av[5]); 29 | freeStrBuffer(ap->s_level,bp); 30 | return rcode; 31 | } 32 | int INHERENT_alloca(){ return 1; } 33 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__fchmod.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int INHERENT_fchmod(){ return 1; } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__fchown.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int INHERENT_fchown(){ return 1; } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__flock.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int lock_ext = 0; 4 | 5 | int SHlockB(int fd){ return flock(fd,LOCK_SH); } 6 | int SHlockNB(int fd){ return flock(fd,LOCK_SH|LOCK_NB); } 7 | int EXlockB(int fd){ return flock(fd,LOCK_EX); } 8 | int EXlockNB(int fd){ return flock(fd,LOCK_EX|LOCK_NB); } 9 | int UNlock(int fd){ return flock(fd,LOCK_UN); } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__fork.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int _INHERENT_fork(){ return 1; } 4 | int INHERENT_fork(){ return 1; } 5 | int WAIT_WNOHANG = WNOHANG; 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__forkpty.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef __APPLE__ 4 | #include 5 | #else 6 | #include 7 | #include 8 | #include 9 | #if defined(__OpenBSD__) || defined(__NetBSD__) 10 | #include 11 | #else 12 | #include 13 | #endif 14 | #endif 15 | 16 | int _ForkptyX(int *pty,char *name,void *mode,void *size){ 17 | int pid; 18 | pid = forkpty(pty,name,(struct termios*)mode,(struct winsize*)size); 19 | return pid; 20 | } 21 | int _Forkpty(int *pty,char *name){ 22 | return _ForkptyX(pty,name,NULL,NULL); 23 | } 24 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__futimes.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #ifndef SYS_futimes 4 | futimes() is unavailable and might be a stab on Linux. 5 | #endif 6 | 7 | #include 8 | 9 | int INHERENT_futimes(){ return 1; } 10 | int Futimes(int fd,int as,int au,int ms,int mu){ 11 | struct timeval tv[2]; 12 | tv[0].tv_sec = as; 13 | tv[0].tv_usec = au; 14 | tv[1].tv_sec = ms; 15 | tv[1].tv_usec = mu; 16 | return futimes(fd,tv); 17 | } 18 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__gethostbyname2.c: -------------------------------------------------------------------------------- 1 | #include "vsocket.h" 2 | 3 | #if defined(__cplusplus) 4 | extern "C" { 5 | #endif 6 | struct hostent *gethostbyname2(const char *name,int af); 7 | #if defined(__cplusplus) 8 | } 9 | #endif 10 | 11 | struct hostent *gethostbyname2X(const char *name,int af){ 12 | return gethostbyname2(name,af); 13 | } 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__getwinsize.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #ifdef sun 5 | #include 6 | #ifdef __cplusplus 7 | extern "C" { int ioctl(int fildes, int request,...); } 8 | #endif 9 | #endif 10 | 11 | int getwinsize(int fd,int *row,int *col){ 12 | struct winsize ws; 13 | if( ioctl(fd,TIOCGWINSZ,&ws) == 0 ){ 14 | if( row ) *row = ws.ws_row; 15 | if( col ) *col = ws.ws_col; 16 | return 0; 17 | }else{ 18 | return -1; 19 | } 20 | } 21 | int setwinsize(int fd,int row,int col){ 22 | struct winsize ws; 23 | ws.ws_row = row; 24 | ws.ws_col = col; 25 | if( ioctl(fd,TIOCSWINSZ,&ws) == 0 ){ 26 | return 0; 27 | }else{ 28 | return -1; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__link.c: -------------------------------------------------------------------------------- 1 | #include 2 | static void dummy(){ link("/","/"); } 3 | 4 | int INHERENT_link(){ return 1; } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__lstat.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int INHERENT_lstat(){ return 1; } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__malloc_size.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #if defined(__APPLE__) 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | int malloc_size(void *p); 8 | #ifdef __cplusplus 9 | } 10 | #endif 11 | #endif 12 | 13 | int mallocSize(void *p){ 14 | return malloc_size(p); 15 | } 16 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__opendir.c: -------------------------------------------------------------------------------- 1 | #include 2 | #if defined(STAT64) 3 | #define __USE_FILE_OFFSET64 4 | #endif 5 | #include 6 | #include 7 | #include "yarg.h" 8 | 9 | int scan_ino; 10 | #if defined(__CYGWIN__) 11 | #define D_INO(de) 0 12 | #else 13 | #define D_INO(de) de->d_ino 14 | #endif 15 | 16 | int Scandir(const char *dirpath,int(*func)(const char*,...),...) 17 | { DIR *dirp; 18 | struct dirent *dir1; 19 | int rcode; 20 | 21 | VARGS(8,func); 22 | 23 | rcode = 0; 24 | if( dirp = opendir(dirpath) ){ 25 | while( dir1 = readdir(dirp) ){ 26 | scan_ino = D_INO(dir1); 27 | if( rcode = (*func)(dir1->d_name,VA8) ) 28 | break; 29 | } 30 | closedir(dirp); 31 | } 32 | return rcode; 33 | } 34 | 35 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__scandir.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "yarg.h" 6 | 7 | int scan_ino; 8 | 9 | int Scandir(const char *dirpath,int(*func)(const char*,...),...) 10 | { struct direct **dirents,*dir1; 11 | int nent,ei; 12 | int rcode; 13 | 14 | VARGS(8,func); 15 | 16 | rcode = 0; 17 | dirents = NULL; 18 | if( 0 < (nent = scandir(dirpath,&dirents,NULL,NULL)) ){ 19 | for( ei = 0; ei < nent; ei++ ){ 20 | dir1 = dirents[ei]; 21 | dir1->d_name[dir1->d_namlen] = 0; 22 | scan_ino = dir1->d_fileno; 23 | 24 | if( rcode = (*func)(dir1->d_name,VA8) ) 25 | break; 26 | } 27 | free(dirents); 28 | } 29 | return rcode; 30 | } 31 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__setproctitle.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #include 3 | #include 4 | int Setproctitle(const char *fmt,...){ 5 | VARGS(8,fmt); 6 | setproctitle(fmt,VA8); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__sigaction.c: -------------------------------------------------------------------------------- 1 | #include 2 | #ifdef _MSC_VER 3 | void bzero(void *b,unsigned int length); 4 | #else 5 | #include 6 | #endif 7 | 8 | #ifdef sun 9 | /* an executalbe compiled on SunOS may be executed on Solaris, 10 | * therefore SA_RESTART must be selected at run-time. 11 | */ 12 | #undef SA_RESTART 13 | #define SA_RESTART (IsSolaris() ? 4 : 0) 14 | #endif 15 | 16 | #if defined(SA_RESTART) 17 | typedef void (*VFunc)(int); 18 | VFunc signalRESTART(int sig,VFunc handler) 19 | { struct sigaction act,oact; 20 | 21 | bzero((char*)&act,sizeof(act)); 22 | bzero((char*)&act.sa_mask,sizeof(act.sa_mask)); 23 | act.sa_handler = handler; 24 | act.sa_flags = SA_RESTART; /* without SA_NOCLDSTOP */ 25 | 26 | if( sigaction(sig,&act,&oact) == -1 ) 27 | return (VFunc)-1; 28 | return oact.sa_handler; 29 | } 30 | #else 31 | #include "sigaction.c" 32 | #endif 33 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__spawnvp.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _P_NOWAIT 4 | #ifndef P_NOWAIT 5 | #define P_NOWAIT _P_NOWAIT 6 | #endif 7 | #endif 8 | 9 | #ifdef _P_WAIT 10 | #ifndef P_WAIT 11 | #define P_WAIT _P_WAIT 12 | #endif 13 | #endif 14 | 15 | int INHERENT_spawn(){ return 1; } 16 | int SPAWN_P_NOWAIT = P_NOWAIT; 17 | int SPAWN_P_WAIT = P_WAIT; 18 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__statvfs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int Fstype(const char *path,char type[]) 6 | { struct statvfs buf; 7 | 8 | if( statvfs(path,&buf) == 0 ){ 9 | memcpy(type,buf.f_basetype,strlen(buf.f_basetype)+1); 10 | return 0; 11 | } 12 | *type = 0; 13 | return -1; 14 | } 15 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__symlink.c: -------------------------------------------------------------------------------- 1 | int WITH_symlink(){ return 1; } 2 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__sysconf.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #include 3 | /* Solaris */ 4 | 5 | FileSize getSysinfo(const char *name){ 6 | if( strcmp(name,"totalmem") == 0 ){ 7 | return ((FileSize)sysconf(_SC_PAGESIZE)) 8 | * sysconf(_SC_PHYS_PAGES); 9 | } 10 | if( strcmp(name,"freemem") == 0 ){ 11 | return ((FileSize)sysconf(_SC_PAGESIZE)) 12 | * sysconf(_SC_AVPHYS_PAGES); 13 | } 14 | return -1; 15 | } 16 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__sysctl.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #include 3 | #include 4 | #include 5 | 6 | FileSize getSysctl(const char *name){ 7 | int old4; 8 | FileSize old8; 9 | size_t olen,nlen; 10 | 11 | olen = sizeof(old4); 12 | old4 = 0; 13 | if( sysctlbyname(name,&old4,&olen,NULL,0) == 0 ){ 14 | return ((FileSize)old4) & 0xFFFFFFFF; 15 | } 16 | if( errno == ENOMEM ){ 17 | old8 = 0; 18 | olen = sizeof(old8); 19 | if( sysctlbyname(name,&old8,&olen,NULL,0) == 0 ){ 20 | return old8; 21 | } 22 | } 23 | return -1; 24 | } 25 | 26 | /* 27 | int main(int ac,char *av[]){ 28 | int msize; 29 | getSysctl("hw.ncpu"); 30 | getSysctl("hw.usermem"); 31 | getSysctl("hw.memsize"); 32 | return 0; 33 | } 34 | */ 35 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__sysinfo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "ystring.h" 3 | 4 | FileSize getSysinfo(const char *name){ 5 | struct sysinfo info; 6 | if( sysinfo(&info) != 0 ){ 7 | return -1; 8 | } 9 | if( strcmp(name,"totalmem") == 0 ){ 10 | return ((FileSize)info.totalram) * info.mem_unit; 11 | } 12 | if( strcmp(name,"freemem") == 0 ){ 13 | return ((FileSize)info.freeram) * info.mem_unit; 14 | } 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__syslog.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #include 3 | 4 | int SYSLOG_EMERG = LOG_EMERG; 5 | int SYSLOG_ALERT = LOG_ALERT; 6 | int SYSLOG_CRIT = LOG_CRIT; 7 | int SYSLOG_ERR = LOG_ERR; 8 | int SYSLOG_WARNING = LOG_WARNING; 9 | int SYSLOG_NOTICE = LOG_NOTICE; 10 | int SYSLOG_INFO = LOG_INFO; 11 | int SYSLOG_DEBUG = LOG_DEBUG; 12 | 13 | #ifdef LOG_PRIMASK 14 | int SYSLOG_PRIMASK = LOG_PRIMASK; 15 | #else 16 | int SYSLOG_PRIMASK = 0x7; 17 | #endif 18 | 19 | int INHERENT_syslog(){ return 1; } 20 | 21 | void openlogX(PCStr(ident),PCStr(logopt),int facility){ 22 | int opts = 0; 23 | if( isinListX(logopt,"ndelay","c") ) opts |= LOG_NDELAY; 24 | if( isinListX(logopt,"pid","c") ) opts |= LOG_PID; 25 | openlog(ident,opts,facility); 26 | } 27 | 28 | void syslogX(int priority,PCStr(fmt),...){ 29 | VARGS(4,fmt); 30 | syslog(priority,fmt,VA4); 31 | } 32 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__system.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | #ifndef _MSC_VER 4 | int unix_system(PCStr(com)); 5 | int std::system(PCStr(com)){ 6 | return unix_system(com); 7 | } 8 | #endif 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__ualarm.c: -------------------------------------------------------------------------------- 1 | #include 2 | int Ualarm(int usecs){ 3 | return ualarm(usecs,0); 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__uname.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "ystring.h" 4 | 5 | typedef struct { 6 | struct utsname ue_un; 7 | int ue_un_got; 8 | } UnEnv; 9 | static UnEnv *unEnv; 10 | #define un unEnv->ue_un 11 | #define un_got unEnv->ue_un_got 12 | void minit_uname(){ 13 | if( unEnv == 0 ) 14 | unEnv = NewStruct(UnEnv); 15 | } 16 | 17 | int Uname(PVStr(name)) 18 | { 19 | minit_uname(); 20 | 21 | if( un_got == 0 ){ 22 | if( 0 <= uname(&un) ){ 23 | un.sysname[sizeof(un.sysname)-1] = 0; 24 | un.release[sizeof(un.release)-1] = 0; 25 | un_got = 1; 26 | }else un_got = -1; 27 | } 28 | if( 0 < un_got ){ 29 | sprintf(name,"%s/%s",un.sysname,un.release); 30 | return 0; 31 | }else{ 32 | strcpy(name,"?"); 33 | return -1; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__usleep.c: -------------------------------------------------------------------------------- 1 | #if defined(hpux) || defined(__hpux__) \ 2 | || defined(_nec_ews) \ 3 | || defined(BUGGY_USLEEP) 4 | 5 | #include "usleep.c" 6 | 7 | #else 8 | #include "ystring.h" 9 | #include 10 | void usleep_bypoll(int); 11 | 12 | static int buggy_USLEEP; 13 | void Usleep(int usec) 14 | { CStr(uname,128); 15 | 16 | if( buggy_USLEEP == 0 ){ 17 | Uname(AVStr(uname)); 18 | if( strncmp(uname,"HI-UX",5) == 0 ) 19 | buggy_USLEEP = 1; 20 | else buggy_USLEEP = -1; 21 | } 22 | if( 0 < buggy_USLEEP ) 23 | usleep_bypoll(usec); 24 | else usleep(usec); 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/__utimes.c: -------------------------------------------------------------------------------- 1 | int INHERENT_utimes(){ return 1; } 2 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/_spawnvp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int _spawnvp(int pmode,const char *path,const char *const argv[]) 6 | { int pid; 7 | 8 | if( pid = fork() ){ 9 | /* 10 | if( pmode == P_WAIT || pmode == P_WAITO ) 11 | wait(0); 12 | */ 13 | return pid; 14 | } 15 | execvp(path,(char*const*const)argv); 16 | exit(-1); 17 | return -1; 18 | } 19 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/alloca.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "yalloca.h" 3 | int porting_dbg(const char *fmt,...); 4 | 5 | int alloca_call(AllocaArg *ap) 6 | { char buff[STACK1]; 7 | int size; 8 | 9 | if( 0 < ap->s_count-- ) 10 | return alloca_call(ap); 11 | else{ 12 | if( ap->s_trace ){ 13 | size = ap->s_sp0 - (char*)≈ 14 | porting_dbg("%s (%4d) = %5d [%08lX - %08lX]", 15 | ap->s_what,ap->s_size,size,(char*)&ap,ap->s_sp0); 16 | } 17 | return (*ap->s_func)(ap->s_av[0],ap->s_av[1], 18 | ap->s_av[2],ap->s_av[3],ap->s_av[4],ap->s_av[5]); 19 | } 20 | } 21 | int INHERENT_alloca(){ return 0; } 22 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/avail.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int ac,char *av[]) 4 | { const char *CC; 5 | const char *sym; 6 | int avail; 7 | FILE *tmp; 8 | 9 | if( ac < 3 ){ 10 | fprintf(stderr,"Usage: %s CC function_name\n",av[0]); 11 | return -1; 12 | } 13 | 14 | tmp = tmpfile(); 15 | CC = av[1]; 16 | sym = av[2]; 17 | avail = _available(tmp,sym,CC,"",""); 18 | printf("%s is %s\n",sym,avail?"available":"not available"); 19 | exit(avail); 20 | } 21 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/bcopy.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | int SUBST_bcopy = 1; /* bcopy(void*,void*,unsigned int*); */ 4 | 5 | #if defined(__hpux__) 6 | #define TSZ unsigned long 7 | #else 8 | #define TSZ unsigned int 9 | #endif 10 | 11 | void bcopy(const void *b1,void *b2,TSZ length) 12 | { int i; 13 | const char *t1; 14 | char *t2; 15 | 16 | if( b2 == b1 ) 17 | return; 18 | if( b2 < b1 ) 19 | for( i = 0; i < length; i++ ) 20 | ((char*)b2)[i] = ((char*)b1)[i]; 21 | else{ 22 | t1 = (char*)b1 + length - 1; 23 | t2 = (char*)b2 + length - 1; 24 | for( i = 0; i < length; i++ ) 25 | *t2-- = *t1--; 26 | } 27 | } 28 | 29 | int bcmp(const void *b1,const void *b2,TSZ length) 30 | { int i; 31 | 32 | for( i = 0; i < length; i++) 33 | if( ((char*)b1)[i] != ((char*)b2)[i] ) 34 | return 1; 35 | return 0; 36 | } 37 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/bzero.c: -------------------------------------------------------------------------------- 1 | int SUBST_bzero = 1; 2 | void bzero(void *b,unsigned int length) 3 | { int i; 4 | 5 | for( i = 0; i < length; i++ ) 6 | ((char*)b)[i] = 0; 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/chown.c: -------------------------------------------------------------------------------- 1 | int SUBST_chown = 1; 2 | 3 | int chown(const char *path,int uid,int gid) 4 | { 5 | return -1; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/chroot.c: -------------------------------------------------------------------------------- 1 | int SUBST_chroot = 1; 2 | 3 | int porting_dbg(const char *fmt,...); 4 | int chroot(const char *path) 5 | { 6 | porting_dbg("chroot(%s) not supported",path); 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/closesocket.c: -------------------------------------------------------------------------------- 1 | int SUBST_closesocket = 1; 2 | 3 | int SocketOf(int sock) 4 | { 5 | return sock; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/dlopen.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #if defined(__KURO_BOX__) 3 | #define dlopen __dlopen 4 | #define dlsym __dlsym 5 | #define dlerror __dlerror 6 | #define dlclose __dlclose 7 | #endif 8 | int porting_dbg(const char *fmt,...); 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #include 15 | void *dlopen(const char *path,int mode){ 16 | porting_dbg("dlopen(%s) not supported",path); 17 | return NULL; 18 | } 19 | void *dlsym(void *handle,const char *symbol){ 20 | return NULL; 21 | } 22 | const char *dlerror(void){ 23 | return "(dl NOT SUPPORTED)"; 24 | } 25 | int dlclose(void *handle){ 26 | return -1; 27 | } 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/dummy.c: -------------------------------------------------------------------------------- 1 | int SUBST_dummy = 1; 2 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/endhostent.c: -------------------------------------------------------------------------------- 1 | int SUBST_endhostent = 1; 2 | 3 | void endhostent(){ 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/errno.c: -------------------------------------------------------------------------------- 1 | /* __CYGWIN__ does not have errno ... 2 | */ 3 | #ifndef __cplusplus 4 | int errno; 5 | #endif 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fchmod.c: -------------------------------------------------------------------------------- 1 | int SUBST_fchmod = 1; 2 | int INHERENT_fchmod(){ return 0; } 3 | 4 | #include 5 | int porting_dbg(const char *fmt,...); 6 | int fchmod(int fd,int mode) 7 | { 8 | porting_dbg("fchmod(%d,%x) not available.",fd,mode); 9 | return -1; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fchown.c: -------------------------------------------------------------------------------- 1 | int SUBST_fchown = 1; 2 | int INHERENT_fchown(){ return 0; } 3 | 4 | #include 5 | int porting_dbg(const char *fmt,...); 6 | int fchown(int fd,int uid,int gid) 7 | { int rcode; 8 | 9 | if( uid == 0 && gid == 0 ) 10 | rcode = 0; 11 | else rcode = -1; 12 | porting_dbg("fchown(%d,%d,%d) = %d",fd,uid,gid,rcode); 13 | return rcode; 14 | } 15 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fcloseFILE.c: -------------------------------------------------------------------------------- 1 | #ifndef _MSC_VER 2 | const char *type_fcloseFILE = "C"; 3 | #include 4 | #include "ystring.h" 5 | /* 6 | * fclose(FILE *fp) without closing fileno(FILE *fp) 7 | */ 8 | int FL_fcloseFILE(FL_PAR,FILE *fp){ 9 | int fd,fdsav; 10 | 11 | fd = fileno(fp); 12 | fdsav = dup(fd); 13 | fclose(fp); 14 | close(fd); /* do closesocket() on Win32 */ 15 | dup2(fdsav,fd); 16 | close(fdsav); 17 | return fd; 18 | } 19 | #endif 20 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fgetpos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "file.h" 3 | 4 | int Fgetpos(FILE *fp,Fpos_t *pos){ 5 | pos[0] = ftell(fp); 6 | return pos[0]; 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/flockfile.c: -------------------------------------------------------------------------------- 1 | #include 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | void flockfile(FILE *fp){ 6 | } 7 | void funlockfile(FILE *fp){ 8 | } 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fork.c: -------------------------------------------------------------------------------- 1 | int SUBST_fork = 1; 2 | int _INHERENT_fork(){ return 0; } 3 | int INHERENT_fork(){ return 0; } 4 | 5 | #include 6 | #include 7 | int WAIT_WNOHANG = -1; 8 | 9 | /* 10 | int porting_dbg(const char *fmt,...); 11 | int fork(){ 12 | porting_dbg("*** fork() is not available."); 13 | exit(1); 14 | return -1; 15 | } 16 | */ 17 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/forkpty.c: -------------------------------------------------------------------------------- 1 | int _ForkptyX(int *pty,char *name,void *mode,void *size){ 2 | return -1; 3 | } 4 | int _Forkpty(int *pty,char *name){ 5 | return -1; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fpurge.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | int fpurge(FILE *fp){ 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fseeko.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | int Fseeko(FILE *fp,FileSize off,int whence){ 4 | return fseek(fp,(int)off,whence); 5 | } 6 | FileSize Ftello(FILE *fp){ 7 | return ftell(fp); 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/fsync.c: -------------------------------------------------------------------------------- 1 | int SUBST_fsync = 1; 2 | 3 | int fsync(/*int fd*/) 4 | { 5 | return -1; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/futimes.c: -------------------------------------------------------------------------------- 1 | int INHERENT_futimes(){ return 0; } 2 | int Futimes(int fd,int as,int au,int ms,int mu){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/futimes_.c: -------------------------------------------------------------------------------- 1 | /* for Linux */ 2 | #include "futimes.c" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getcwd.c: -------------------------------------------------------------------------------- 1 | int SUBST_getcwd = 1; 2 | 3 | #include 4 | #define MAXPATHLEN 1024 5 | char *getwd(char*); 6 | 7 | char *getcwd(char path[],int size) 8 | { char pathb[MAXPATHLEN]; 9 | const char *rcode; 10 | 11 | if( size <= sizeof(pathb) ) 12 | return getwd(path); 13 | else{ 14 | rcode = getwd(pathb); 15 | strncpy(path,pathb,sizeof(pathb)); 16 | return (char*)rcode; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/gethostbyname2.c: -------------------------------------------------------------------------------- 1 | #include "vsocket.h" 2 | #if defined(hpux) || defined(__hpux__) \ 3 | || defined(__CYGWIN__) \ 4 | || defined(__hpux) \ 5 | || defined(sun) \ 6 | || defined(__osf__) 7 | 8 | #undef gethostbyname /* 9.9.2: to avoid loop gethostbyname/_GETHOSTBYNAME */ 9 | 10 | struct hostent *gethostbyname2X(const char *name,int af){ 11 | return gethostbyname(name); 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/gethostid.c: -------------------------------------------------------------------------------- 1 | long gethostid(void){ 2 | return 0; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getmsg.c: -------------------------------------------------------------------------------- 1 | int SUBST_getmsg = 1; 2 | 3 | #include 4 | int getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, int *flags) 5 | { 6 | fprintf(stderr, 7 | "delegated: getmsg() is not linked to this executable.\n"); 8 | return -1; 9 | } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getrlimit.c: -------------------------------------------------------------------------------- 1 | int expand_fdset(int setsize) 2 | { 3 | return 256; 4 | } 5 | int expand_stack(int setsize) 6 | { 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getrusage.c: -------------------------------------------------------------------------------- 1 | #ifndef _MSC_VER 2 | #include "ystring.h" 3 | int strfRusage(PVStr(usg),PCStr(fmt),int who,PCStr(sru)){ 4 | setVStrEnd(usg,0); 5 | return 0; 6 | } 7 | #endif 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getwd.c: -------------------------------------------------------------------------------- 1 | int SUBST_getwd = 1; 2 | 3 | #define MAXPATHLEN 1024 4 | char *getcwd(char*,int); 5 | 6 | char *getwd(char path[]) 7 | { 8 | return getcwd(path,MAXPATHLEN); 9 | } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/getwinsize.c: -------------------------------------------------------------------------------- 1 | int getwinsize(int fd,int *row,int *col){ 2 | return -1; 3 | } 4 | int setwinsize(int fd,int row,int col){ 5 | return -1; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/gxx.c: -------------------------------------------------------------------------------- 1 | /* 2 | * to cope with the following case (MacOSX 10.2) 3 | * ... with CFLAGS=-x c++ 4 | * ... without CC=g++ 5 | * ... without LDFLAGS=-lstdc++ 6 | * to avoid 7 | * ... undefined reference to `__gxx_personality_v0' 8 | */ 9 | int __gxx_personality_v0; 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/inet_aton.c: -------------------------------------------------------------------------------- 1 | int SUBST_inet_aton = 1; 2 | 3 | #include "vsocket.h" 4 | int Inet_aton(const char *addr,struct in_addr *inap); 5 | int inet_aton(const char *addr,struct in_addr *inap) 6 | { 7 | return Inet_aton(addr,inap); 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/killpg.c: -------------------------------------------------------------------------------- 1 | int SUBST_killpg = 1; 2 | 3 | int kill(int,int sig); 4 | int killpg(int gid,int sig) 5 | { 6 | return kill(-gid,sig); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/link.c: -------------------------------------------------------------------------------- 1 | int SUBST_link = 1; 2 | int INHERENT_link(){ return 0; } 3 | 4 | #include 5 | 6 | int porting_dbg(const char *fmt,...); 7 | int link(const char *path1,const char *path2) 8 | { 9 | porting_dbg("*** link(%s,%s) is not available.",path1,path2); 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/lstat.c: -------------------------------------------------------------------------------- 1 | int SUBST_lstat = 1; 2 | int INHERENT_lstat(){ return 0; } 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | int stat(const char *path, struct stat *st); 9 | int porting_dbg(const char *fmt,...); 10 | 11 | int lstat(const char *path,struct stat *st) 12 | { int rcode; 13 | 14 | rcode = stat(path,st); 15 | porting_dbg("*** lstat() = %d, substituted by stat().",path,rcode); 16 | return rcode; 17 | } 18 | 19 | int _stati64(const char *path, struct _stati64 *st); 20 | __int64 lstati64(const char *path,struct _stati64 *st){ 21 | int rcode; 22 | 23 | rcode = _stati64(path,st); 24 | porting_dbg("*** lstat() = %d, substituted by stat().",path,rcode); 25 | return rcode; 26 | } 27 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/malloc_size.c: -------------------------------------------------------------------------------- 1 | int mallocSize(void *p){ 2 | return -1; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/mkfifo.c: -------------------------------------------------------------------------------- 1 | int Mkfifo(const char *path,int mode){ 2 | return -1; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/mutex.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | const char *WithMutex = "none"; 3 | int setupCSC(const char *wh,void *acs,int asz){ 4 | return 0; 5 | } 6 | int debugCSC(void *acs,int on){ 7 | return -1; 8 | } 9 | int enterCSC_FL(FL_PAR,void *xcs){ 10 | return 0; 11 | } 12 | int enterCSCX_FL(FL_PAR,void *xcs,int timeout){ 13 | return 0; 14 | } 15 | int leaveCSC_FL(FL_PAR,void *xcs){ 16 | return 0; 17 | } 18 | int statsCSC(void *acs,int *count,int *retry,int *timeout){ 19 | *count = *retry = *timeout = 0; 20 | return -1; 21 | } 22 | int sizeofCSC(){ 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/netsh_none.c: -------------------------------------------------------------------------------- 1 | int netsh_main(int ac,const char *av[]){ 2 | return -1; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/nice.c: -------------------------------------------------------------------------------- 1 | int SUBST_nice = 1; 2 | 3 | int nice(int inc){ 4 | return -1; 5 | } 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/nothread.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | int getThreadIds(FileSize *mtid,FileSize *ctid){ return 0; } 3 | 4 | const char *WithThread = 0; 5 | int (*ThreadFork)() = 0; 6 | int (*ThreadYield)() = 0; 7 | int (*ThreadId)() = 0; 8 | int (*ThreadWait)(int,int) = 0; 9 | int (*ThreadExit)(void *code) = 0; 10 | int SIZEOF_tid_t = 0; 11 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/old_alloca.c: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | #define alloca(z) _alloca(z) 3 | #else 4 | #include 5 | #endif 6 | #include "__alloca.c" 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_htaccept.c: -------------------------------------------------------------------------------- 1 | #include "dglib.h" 2 | const char *OPT_S_htaccept; 3 | 4 | int AcceptViaHTTP(DGCTX Conn,int ba,int rsock,int timeout,int priority,PCStr(rport),PVStr(sockname),PVStr(peername)){ 5 | NOSRC_warn("AcceptViaHTTP",""); 6 | setVStrEnd(sockname,0); 7 | setVStrEnd(peername,0); 8 | return -1; 9 | } 10 | int ConnectViaHTTP(DGCTX Conn,int sock,int timeout,PVStr(rhost),PVStr(rpeer)){ 11 | NOSRC_warn("ConnectViaHTTP",""); 12 | setVStrEnd(rhost,0); 13 | setVStrEnd(rpeer,0); 14 | return -1; 15 | } 16 | int startHTMUX_SV(DGCTX Conn,PCStr(sxver),FILE *tc,PCStr(req),PCStr(head)){ 17 | NOSRC_warn("startHTMUX_SV",""); 18 | return -1; 19 | } 20 | int startHTMUX_CL(DGCTX Conn,int sock,PCStr(rport)){ 21 | NOSRC_warn("startHTMUX_CL",""); 22 | return -1; 23 | } 24 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_pilsner.c: -------------------------------------------------------------------------------- 1 | #include "dglib.h" 2 | 3 | int pilsner_main(int ac,const char *av[]){ 4 | NOSRC_warn("pilsner",""); 5 | return -1; 6 | } 7 | int pilsner(DGC*ctx,const char *src,char *dst,int dsz){ 8 | return -1; 9 | } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_sox.c: -------------------------------------------------------------------------------- 1 | #include "dglib.h" 2 | const char *OPT_S_sox; 3 | 4 | typedef struct DGSox Sox; 5 | typedef struct SoxAgent Agent; 6 | typedef struct SoxPacket Packet; 7 | 8 | void *optctx(DGC*ctx){ 9 | return 0; 10 | } 11 | int sox_connects(void *sc,Sox *sox,DGC*ctx,PVStr(local),PVStr(remote),int itvl){ 12 | NOSRC_warn("sox_connects",""); 13 | return -1; 14 | } 15 | int sox_connect1(void *sc,DGC*ctx,Packet *pack,PCStr(serverURL),PVStr(remote),PVStr(local),int *pidp){ 16 | NOSRC_warn("sox_connect1",""); 17 | return -1; 18 | } 19 | int beSockMux(DGC*ctx,int sxsock,int insock,PCStr(sxhost),int sxport){ 20 | NOSRC_warn("beSockMux",""); 21 | return -1; 22 | } 23 | 24 | void send_BIND(Sox *sox,Agent *Apc,Packet *pack,PCStr(ports),Agent *Ap1){ 25 | } 26 | void recv_BOUND(Sox *sox,Packet *pack){ 27 | } 28 | void recv_BIND(Sox *sox,Agent *Apc,Packet *pack){ 29 | } 30 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_spinach.c: -------------------------------------------------------------------------------- 1 | #include "vsocket.h" 2 | #include "dglib.h" 3 | 4 | int spinach_main(int ac,const char *av[]){ 5 | NOSRC_warn("spinach",""); 6 | return -1; 7 | } 8 | int spinach(DGC *Conn,FILE *fc,FILE *tc){ 9 | return 0; 10 | } 11 | 12 | int startCCSV(DGC *Conn){ 13 | return -1; 14 | } 15 | int destroyCCSV(PCStr(what),DGC *Conn,int svsock){ 16 | return -1; 17 | } 18 | int connectViaCCSV(int sock,SAP addr,int leng,int timeout,PVStr(cstat)){ 19 | return -1; 20 | } 21 | int waitCCSV(DGC *Conn,int msec){ 22 | return -1; 23 | } 24 | int service_ecc(DGC *Conn,int sock,int port){ 25 | return -1; 26 | } 27 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_stls.c: -------------------------------------------------------------------------------- 1 | #include "dglib.h" 2 | const char *OPT_S_stls; 3 | 4 | typedef struct DGCtx Connection; 5 | int beManInTheMiddle(Connection *Conn,FILE *tc,FILE *fc){ 6 | NOSRC_warn("beManInTheMiddle",""); 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/opt_s_vsap.c: -------------------------------------------------------------------------------- 1 | #include "dglib.h" 2 | const char *OPT_S_vsap; 3 | int CTX_VSAPbind(DGCTX Conn,PVStr(sockname),int nlisten){ 4 | NOSRC_warn("VSAPbind",""); 5 | setVStrEnd(sockname,0); 6 | return -1; 7 | } 8 | int VSAPaccept(DGCTX Conn,int timeout,int rsock,int priority,PVStr(sockname),PVStr(peername)){ 9 | NOSRC_warn("VSAPaccept",""); 10 | setVStrEnd(sockname,0); 11 | setVStrEnd(peername,0); 12 | return -1; 13 | } 14 | int CTX_VSAPbindaccept(DGCTX Conn,int timeout,int priority,PVStr(sockname),PVStr(peername)){ 15 | NOSRC_warn("VSAPbindaccept",""); 16 | setVStrEnd(sockname,0); 17 | setVStrEnd(peername,0); 18 | return -1; 19 | } 20 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/p2i.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | int p2iX(FL_PAR,const void *p){ 3 | return 0xFFFFFFFF & ((Int64)p); 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/p2ll.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | /* to screen the warning out to the standard output */ 3 | const char *p2llx = "A"; 4 | Int64 p2llX(FL_PAR,const void *p){ 5 | return (Int64)p; 6 | } 7 | /* return 32bits value without sign extension */ 8 | Int64 p2lluX(FL_PAR,const void *p){ 9 | if( sizeof(p) == 4 ){ 10 | return 0xFFFFFFFF & (unsigned Int64)p; 11 | } 12 | return (Int64)p; 13 | } 14 | const void *ll2pX(FL_PAR,Int64 ll){ 15 | return (const void *)ll; 16 | } 17 | const void *i2pX(FL_PAR,int i){ 18 | return (const void *)i; 19 | } 20 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/pam_start.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | int SUBST_pam_start = 1; 8 | 9 | int pam_start(const char *s,const char *u,const struct pam_conv *c,void**h){ 10 | porting_dbg("ERROR: PAM module is not built in."); 11 | return -1; 12 | } 13 | int pam_end(void *ph,int ps){ 14 | return -1; 15 | } 16 | int pam_authenticate(void *ph,int flags){ 17 | return -1; 18 | } 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/pendingcc.c: -------------------------------------------------------------------------------- 1 | #include 2 | int pendingcc(FILE *fp){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/pendingcc1.c: -------------------------------------------------------------------------------- 1 | #include 2 | int pendingcc(FILE *fp){ 3 | if( fp == NULL ) 4 | return -1; 5 | return fp->_bf._size - fp->_w; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/pthread_kill.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | int (*ThreadKill)(int,int) = 0; 3 | int (*ThreadDestroy)(int) = 0; 4 | int (*ThreadSigmask)(const char *show,SigMaskInt nmaski,SigMaskInt *omaski) = 0; 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/ptrace.c: -------------------------------------------------------------------------------- 1 | int INHERENT_ptrace(){ return 0; } 2 | int ptraceTraceMe(){ return -1; } 3 | int ptraceContinue(int a,int b){ return -1; } 4 | int ptraceKill(int a){ return -1; } 5 | int getWaitStopSig(int*a){ return -1; } 6 | int getWaitExitSig(int*a){ return -1; } 7 | int getWaitExitCode(int*a){ return -1; } 8 | int getWaitExitCore(int*a){ return -1; } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/putenv.c: -------------------------------------------------------------------------------- 1 | int SUBST_putenv = 1; /* int putenv(char*); */ 2 | 3 | #include 4 | #include 5 | 6 | extern char **environ; 7 | static char **my_environ; 8 | void *malloc(int); 9 | void free(void*); 10 | 11 | int putenv(void *venv) 12 | { const char *env = (char*)venv; 13 | char name[256]; 14 | int ei,len; 15 | const char *ep; 16 | const char **newe; 17 | 18 | sscanf(env,"%256[^=]",name); 19 | len = strlen(name); 20 | for( ei = 0; ep = environ[ei]; ei++ ) 21 | if( strncmp(ep,name,len) == 0 ){ 22 | environ[ei] = (char*)env; 23 | return 0; 24 | } 25 | 26 | newe = (const char**)malloc(sizeof(char*)*(ei+2)); 27 | for( ei = 0; environ[ei]; ei++ ) 28 | newe[ei] = (const char*)environ[ei]; 29 | newe[ei] = env; 30 | newe[ei+1] = 0; 31 | if( environ == my_environ ) 32 | free(environ); 33 | environ = my_environ = (char**)newe; 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/readlink.c: -------------------------------------------------------------------------------- 1 | int SUBST_readlink = 1; 2 | 3 | #include 4 | int readlink(const char *path,char xpath[],int xplen) 5 | { 6 | errno = EINVAL; 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/regex.c: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | /* _-regex.o will be overriden */ 3 | #else 4 | const char *RegexVer(){ 5 | return "none"; 6 | } 7 | void *Regcomp(const char *pat,int flag){ 8 | return 0; 9 | } 10 | int Regexec(void *re,const char *str,int nm,int so,int eo,int flag){ 11 | return -1; 12 | } 13 | void Regfree(void *re){ 14 | } 15 | #endif 16 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sendFd3.c: -------------------------------------------------------------------------------- 1 | const char *ver_sendFd(){ return "sendFd3"; }; 2 | 3 | int sendFd(int sockfd,int fd,int pid){ 4 | return -1; 5 | } 6 | int recvFd(int sockfd){ 7 | return -1; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setbuffer.c: -------------------------------------------------------------------------------- 1 | int SUBST_setbuffer = 1; 2 | 3 | #include 4 | extern int STDIO_IOFBF; 5 | void setbuffer(FILE *fp,char *buff,unsigned int size) 6 | { 7 | setvbuf(fp,buff,STDIO_IOFBF,size); 8 | } 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setegid.c: -------------------------------------------------------------------------------- 1 | int SUBST_setegid = 1; 2 | 3 | #if defined(__hpux__) 4 | #include 5 | #else 6 | int setresgid(int,int,int); 7 | #endif 8 | 9 | int setegid(int gid) 10 | { 11 | return setresgid(-1,gid,-1); 12 | } 13 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/seteuid.c: -------------------------------------------------------------------------------- 1 | int SUBST_seteuid = 1; 2 | 3 | #if defined(__hpux__) 4 | #include 5 | #else 6 | int setresuid(int,int,int); 7 | #endif 8 | 9 | int seteuid(int uid) 10 | { 11 | return setresuid(-1,uid,-1); 12 | } 13 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setferror.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | int porting_dbg(const char *fmt,...); 5 | int getNullFd(const char *what); 6 | 7 | int setferror(const char *F,int L,FILE *fp){ 8 | int fd,sfd,nfd; 9 | 10 | sfd = nfd = -1; 11 | fd = fileno(fp); 12 | sfd = dup(fd); 13 | nfd = getNullFd("Setferror"); 14 | dup2(nfd,fd); 15 | fputc(0,fp); 16 | fflush(fp); 17 | dup2(sfd,fd); 18 | close(sfd); 19 | porting_dbg("## Setferror(%X/%d,%d,%d)%X %s:%d",fp,fd, 20 | sfd,nfd,ferror(fp),F,L); 21 | return 0; 22 | } 23 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setlinebuf.c: -------------------------------------------------------------------------------- 1 | int SUBST_setlinebuf = 1; 2 | 3 | #include 4 | #ifdef _IOFBF 5 | /* 6 | int setvbuf(FILE*,char*,int,unsigned int); 7 | */ 8 | void setlinebuf(FILE *fp) 9 | { 10 | setvbuf(fp,NULL,_IOLBF,BUFSIZ); 11 | } 12 | #else 13 | static int dummy; 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setlogin.c: -------------------------------------------------------------------------------- 1 | int setlogin(const char *name){ 2 | return -1; 3 | } 4 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setproctitle.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | int Setproctitle(const char *fmt,...){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setresuid.c: -------------------------------------------------------------------------------- 1 | int SUBST_setresuid = 1; /* */ 2 | 3 | #if defined(__hpux__) 4 | #include 5 | #else 6 | int setuid(int); 7 | int seteuid(int); 8 | int setgid(int); 9 | int setegid(int); 10 | #endif 11 | 12 | int setresuid(int ruid,int euid,int suid) 13 | { 14 | if( ruid != -1 ) setuid(ruid); 15 | if( euid != -1 ) seteuid(euid); 16 | return 0; 17 | } 18 | int setresgid(int rgid,int egid,int sgid) 19 | { 20 | if( rgid != -1 ) setgid(rgid); 21 | if( egid != -1 ) setegid(egid); 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/setsid.c: -------------------------------------------------------------------------------- 1 | int SUBST_setsid = 1; 2 | #include 3 | 4 | #if defined(hpux) || defined(__hpux__) 5 | #include 6 | #define TIOCNOTTY O_NOCTTY 7 | #endif 8 | 9 | int open(char*,int); 10 | int close(int); 11 | int getpid(); 12 | 13 | int setsid() 14 | { int fd; 15 | 16 | #ifdef TIOCNOTTY 17 | if( 0 <= (fd = open("/dev/tty",0)) ){ 18 | ioctl(fd,TIOCNOTTY,0); 19 | close(fd); 20 | return getpid(); 21 | } 22 | #endif 23 | return -1; 24 | } 25 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sgTTy.c: -------------------------------------------------------------------------------- 1 | #include 2 | const char *sgTTyType(){ 3 | return "NA"; 4 | } 5 | int getTTySize(int fd,int *width,int *height){ 6 | return -1; 7 | } 8 | int setTTySize(int fd,int width,int height){ 9 | return -1; 10 | } 11 | int setTTyMode(int fd,const char *mode){ 12 | return -1; 13 | } 14 | int getTTyStat(int fd,void *sg,int sz){ 15 | return -1; 16 | } 17 | int setTTyStat(int fd,void *sg,int sz){ 18 | return -1; 19 | } 20 | int issetTTyMode(void *sg,const char *mode){ 21 | return -1; 22 | } 23 | int getTTyMode(int fd,const char *mode){ 24 | return -1; 25 | } 26 | int addTTyMode(void *sg,const char *mode){ 27 | return -1; 28 | } 29 | int clrTTyMode(void *sg,const char *mode){ 30 | return -1; 31 | } 32 | void *dumpTTyStat(int fd){ 33 | return 0; 34 | } 35 | int restoreTTyStat(int fd,void *sg){ 36 | return -1; 37 | } 38 | int freeTTyStat(void *sg){ 39 | return -1; 40 | } 41 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sigaction.c: -------------------------------------------------------------------------------- 1 | #include 2 | typedef void (*VFunc)(int); 3 | 4 | VFunc signalRESTART(int sig,VFunc handler) 5 | { 6 | return signal(sig,handler); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sigmask.c: -------------------------------------------------------------------------------- 1 | int SUBST_sigmask = 1; 2 | 3 | int sigmask(int n) 4 | { 5 | return 1 << ((n)-1); 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sigsetmask.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef SIG_SETMASK 4 | int SUBST_sigsetmask = 1; /* sigsetmask(int mask); */ 5 | 6 | static void int2set(int mask,sigset_t *setp) 7 | { int i; 8 | 9 | sigemptyset(setp); 10 | for(i = 0; i < sizeof(int)*8; i++) 11 | if( mask & (1 << i) ) 12 | sigaddset(setp,i+1); 13 | } 14 | static int set2int(sigset_t *setp) 15 | { int mask,i; 16 | 17 | mask = 0; 18 | for(i = 0; i < sizeof(int)*8; i++) 19 | if( sigismember(setp,i+1) ) 20 | mask |= (1 << i); 21 | return mask; 22 | } 23 | 24 | int sigsetmask(int mask) 25 | { sigset_t set,oset; 26 | 27 | int2set(mask,&set); 28 | oset = set; 29 | sigprocmask( SIG_SETMASK, &set, &oset); 30 | return set2int(&oset); 31 | } 32 | int sigblock(int mask) 33 | { sigset_t set,oset; 34 | 35 | int2set(mask,&set); 36 | oset = set; 37 | sigprocmask( SIG_BLOCK, &set, &oset); 38 | return set2int(&oset); 39 | } 40 | #else 41 | static int dummy; 42 | #endif 43 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/snprintf.c: -------------------------------------------------------------------------------- 1 | #if defined(__osf__) 2 | #include 3 | #include 4 | int snprintf(va_alist) va_dcl { 5 | va_list va; 6 | char *d; 7 | int n; 8 | const char *f; 9 | int z; 10 | 11 | va_start(va); 12 | d = va_arg(va,char*); 13 | n = va_arg(va,int); 14 | f = va_arg(va,const char*); 15 | z = vsprintf(d,f,va); 16 | va_end(va); 17 | if( n < z ){ 18 | fprintf(stderr,"--FATAL-- snprintf %d/%d [%s]\n",z,n,f); 19 | } 20 | return z; 21 | } 22 | int vsnprintf(va_alist) va_dcl { 23 | va_list va; 24 | char *d; 25 | int n; 26 | const char *f; 27 | va_list v; 28 | int z; 29 | 30 | va_start(va); 31 | d = va_arg(va,char*); 32 | n = va_arg(va,int); 33 | f = va_arg(va,const char*); 34 | v = va_arg(va,va_list); 35 | z = vsprintf(d,f,v); 36 | va_end(va); 37 | if( n < z ){ 38 | fprintf(stderr,"--FATAL-- vsnprintf %d/%d [%s]\n",z,n,f); 39 | } 40 | return z; 41 | } 42 | #endif 43 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/socketpair.c: -------------------------------------------------------------------------------- 1 | int SUBST_socketpair = 1; 2 | 3 | int SocketPair(int,int,int,int[2]); 4 | int socketpair(int d,int type,int protocol,int sv[2]) 5 | { 6 | return SocketPair(d,type,protocol,sv); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/socklen_u.c: -------------------------------------------------------------------------------- 1 | #define X_SAL unsigned int 2 | #include "socklen_s.c" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/spawnvp.c: -------------------------------------------------------------------------------- 1 | int SUBST_spawnvp = 1; 2 | 3 | int _spawnvp(int pmode,const char *path,const char *const argv[]); 4 | int spawnvp(int pmode,const char *path,const char *const argv[]) 5 | { 6 | return _spawnvp(pmode,path,argv); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/spawnvp_.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int INHERENT_spawn(){ return 0; } 4 | int SPAWN_P_NOWAIT = 0; 5 | int SPAWN_P_WAIT = 0; 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/statvfs.c: -------------------------------------------------------------------------------- 1 | int Fstype(const char *path,char type[]) 2 | { 3 | *type = 0; 4 | return -1; 5 | } 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/stdio.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _IOFBF 4 | int STDIO_IOFBF = _IOFBF; 5 | #else 6 | int STDIO_IOFBF = 0; 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strcasecmp.c: -------------------------------------------------------------------------------- 1 | int SUBST_strcasecmp = 1; 2 | 3 | #include 4 | 5 | int strncasecmp(const char *a, const char *b, unsigned int n) 6 | { register char ac,bc; 7 | register int i; 8 | 9 | for( i = 1; i < n; i++ ){ 10 | ac = *a++; 11 | bc = *b++; 12 | 13 | if(ac == 0){ 14 | if(bc == 0) 15 | return 0; 16 | else return -1; 17 | }else 18 | if(bc == 0) 19 | return 1; 20 | else 21 | if(ac != bc){ 22 | if(islower(ac)) ac = toupper(ac); 23 | if(islower(bc)) bc = toupper(bc); 24 | if( ac != bc ) 25 | return ac - bc; 26 | } 27 | } 28 | if(islower(*a)) ac = toupper(*a); else ac = *a; 29 | if(islower(*b)) bc = toupper(*b); else bc = *b; 30 | return ac - bc; 31 | } 32 | 33 | int strcasecmp(const char *a,const char *b) 34 | { 35 | return strncasecmp(a,b,0xFFFFFFF); 36 | } 37 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strcasestr.c: -------------------------------------------------------------------------------- 1 | int SUBST_strcasestr = 1; 2 | 3 | #include 4 | #include 5 | 6 | int strncasecmp(const char *s1, const char *s2, size_t n); 7 | 8 | char *Strcasestr(const char *s1,const char *s2) 9 | { const char *p1; 10 | int len; 11 | 12 | if( *s2 == 0 ) 13 | return (char*)s1; 14 | 15 | len = strlen((char*)s2); 16 | for( p1 = s1; *p1; p1 ++ ) 17 | if( toupper(*p1) == toupper(*s2) ) 18 | if( strncasecmp((char*)p1,(char*)s2,len)==0 ) 19 | return (char*)p1; 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strdup.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | int SUBST_strdup = 1; 6 | 7 | unsigned int strlen(const char *str); 8 | void *malloc(unsigned int); 9 | void *memcpy(void *dest,const void *src,unsigned int n); 10 | 11 | char *strdup(const char *str) 12 | { 13 | return (char*)memcpy(malloc(strlen(str)+1),str,strlen(str)+1); 14 | } 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strerror.c: -------------------------------------------------------------------------------- 1 | int SUBST_strerr = 1; 2 | 3 | int strerror() 4 | { 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strncpy.c: -------------------------------------------------------------------------------- 1 | int SUBST_strncpy = 1; 2 | 3 | char *strncpy(char s1[], const char *s2, unsigned int n) 4 | { char *sp; 5 | 6 | sp = s1; 7 | while( 0 < n-- ){ 8 | if( (*sp++ = *s2++) == 0 ){ 9 | while( 0 < n-- ) 10 | *sp++ = 0; 11 | break; 12 | } 13 | } 14 | return s1; 15 | } 16 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strrcasestr.c: -------------------------------------------------------------------------------- 1 | int SUBST_strrcasestr = 1; 2 | 3 | #include 4 | #include 5 | 6 | #include "ystring.h" 7 | #if !defined(__KURO_BOX__) 8 | int strncasecmp(const char *s1, const char *s2, size_t n); 9 | #endif 10 | 11 | char *strrcasestr(const char *s1,const char *s2) 12 | { const char *p1; 13 | int len; 14 | 15 | if( *s2 == 0 ) 16 | return (char*)s1+strlen(s1); 17 | 18 | len = strlen((char*)s2); 19 | for( p1 = s1+strlen(s1)-len; s1 <= p1; p1-- ) 20 | if( toupper(*p1) == toupper(*s2) ) 21 | if( strncasecmp((char*)p1,(char*)s2,len)==0 ) 22 | return (char*)p1; 23 | return 0; 24 | } 25 | 26 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/strstr.c: -------------------------------------------------------------------------------- 1 | int SUBST_strstr = 1; 2 | 3 | unsigned int strlen(const char*); 4 | int strncmp(const char*,const char*,unsigned int); 5 | 6 | const char *strstr(const char *s1,const char *s2) 7 | { const char *p1; 8 | int len; 9 | 10 | if( *s2 == 0 ) 11 | return (char*)s1; 12 | 13 | len = strlen(s2); 14 | for( p1 = s1; *p1; p1 ++ ) 15 | if( *p1 == *s2 && strncmp(p1,s2,len)==0 ) 16 | return p1; 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/symlink.c: -------------------------------------------------------------------------------- 1 | int SUBST_symlink = 1; 2 | 3 | int WITH_symlink(){ return 0; } 4 | int symlink(const char *path1,const char *path2) 5 | { 6 | return -1; 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sysctl.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | FileSize getSysctl(const char *name){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sysctlbyname.c: -------------------------------------------------------------------------------- 1 | /* old RedHat has sysctl() but without sysctlbyname() */ 2 | #include 3 | int sysctlbyname(int *nm,unsigned int nml,void *op,size_t *ol,void *np,size_t nl){ 4 | return -1; 5 | } 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/sysinfo.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | FileSize getSysinfo(const char *name){ 3 | return -1; 4 | } 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/syslog.c: -------------------------------------------------------------------------------- 1 | int SYSLOG_EMERG = 0; 2 | int SYSLOG_ALERT = 1; 3 | int SYSLOG_CRIT = 2; 4 | int SYSLOG_ERR = 3; 5 | int SYSLOG_WARNING = 4; 6 | int SYSLOG_NOTICE = 5; 7 | int SYSLOG_INFO = 6; 8 | int SYSLOG_DEBUG = 7; 9 | int SYSLOG_PRIMASK = 0x7; 10 | 11 | #include "ystring.h" 12 | int INHERENT_syslog(){ return 0; } 13 | void openlogX(PCStr(ident),PCStr(logopt),int facility){ 14 | } 15 | void syslogX(int priority,PCStr(fmt),...){ 16 | } 17 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/timegm.c: -------------------------------------------------------------------------------- 1 | int SUBST_timegm = 1; 2 | 3 | int Timegm(struct tm *tm); 4 | int Timelocal(struct tm *tm); 5 | 6 | long int timegm(struct tm *tm) 7 | { 8 | return Timegm(tm); 9 | } 10 | unsigned int timelocal(struct tm *tm) 11 | { 12 | return Timelocal(tm); 13 | } 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/ualarm.c: -------------------------------------------------------------------------------- 1 | unsigned int alarm(unsigned int seconds); 2 | int Ualarm(int usecs){ 3 | if( 1 <= usecs/1000000 ) 4 | return alarm(usecs/1000000); 5 | else return alarm(1); 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/unaligned.c: -------------------------------------------------------------------------------- 1 | #if defined(__hppa__) 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | void allow_unaligned_data_access(){} 8 | 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/uname.c: -------------------------------------------------------------------------------- 1 | #ifdef news 2 | #define UNAME "NEWS-OS" 3 | #else 4 | #ifdef _MSC_VER 5 | #define UNAME "Windows" 6 | #else 7 | #define UNAME "?" 8 | #endif 9 | #endif 10 | 11 | #include "ystring.h" 12 | int Uname(PVStr(name)) 13 | { 14 | strcpy(name,UNAME); 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/unsetenv.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #ifndef RETYPE 5 | #define RETYPE void 6 | #endif 7 | 8 | extern char **environ; 9 | #include 10 | RETYPE unsetenv(const char *name){ 11 | int ei = 0; 12 | int eo = 0; 13 | int el = 0; 14 | char *e1; 15 | 16 | el = strlen(name); 17 | eo = 0; 18 | for( ei = 0; e1 = environ[ei]; ei++ ){ 19 | if( strncmp(e1,name,el) == 0 && e1[el] == '=' ){ 20 | continue; 21 | } 22 | environ[eo++] = e1; 23 | } 24 | environ[eo] = 0; 25 | } 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/unsetenv_.c: -------------------------------------------------------------------------------- 1 | /* for Solaris9 ? */ 2 | #undef __cplusplus 3 | #define RTYPE int 4 | #include "unsetenv.c" 5 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/usleep.c: -------------------------------------------------------------------------------- 1 | int SUBST_usleep = 1; 2 | 3 | void usleep_bypoll(int usec); 4 | void usleep(int usec){ usleep_bypoll(usec); } 5 | void Usleep(int usec){ usleep(usec); } 6 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/utimes.c: -------------------------------------------------------------------------------- 1 | int SUBST_utimes = 1; 2 | int INHERENT_utimes(){ return 0; } 3 | 4 | #include 5 | #include 6 | int utime(char*,void*); 7 | 8 | int utimes(char file[],struct timeval *tvp) 9 | { struct utimbuf times; 10 | 11 | if( tvp ){ 12 | times.actime = tvp[0].tv_sec; 13 | times.modtime = tvp[1].tv_sec; 14 | return utime(file,×); 15 | }else return utime(file,(void*)0); 16 | } 17 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/vfork.c: -------------------------------------------------------------------------------- 1 | int SUBST_vfork = 1; 2 | 3 | int fork(); 4 | int vfork(){ 5 | return fork(); 6 | } 7 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/wait3.c: -------------------------------------------------------------------------------- 1 | int SUBST_wait3 = 1; 2 | 3 | int waitpid(int,int*,int); 4 | int wait3(int *statusp,int options,void *rusage) 5 | { 6 | return waitpid(-1, statusp, options); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/waitpid.c: -------------------------------------------------------------------------------- 1 | int SUBST_wiatpid = 1; 2 | 3 | int wait4(int,int*,int,void*); 4 | int waitpid(int pid,int *statp,int opts) 5 | { 6 | return wait4(pid,statp,opts,(void*)0); 7 | } 8 | -------------------------------------------------------------------------------- /delegate9.9.13/maker/yp_match.c: -------------------------------------------------------------------------------- 1 | int SUBST_yp_match = 1; 2 | int porting_dbg(const char *fmt,...); 3 | 4 | #if defined(__cplusplus) 5 | extern "C" { 6 | #endif 7 | int yp_match(const char *dom,const char *map,const char *key,int keylen,char **val,int *vallen) 8 | { 9 | *val = ""; 10 | *vallen = 0; 11 | return 5; 12 | } 13 | int yp_get_default_domain(char **domain) 14 | { 15 | porting_dbg("** NO NIS module **"); 16 | *domain = ""; 17 | return 12; 18 | } 19 | #if defined(__cplusplus) 20 | } 21 | #endif 22 | -------------------------------------------------------------------------------- /delegate9.9.13/mimekit/mkranlib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | RANLIBS="/bin/ranlib /usr/bin/ranlib /usr/ucb/ranlib" 4 | RANLIB="ls" 5 | 6 | for RANLIB1 in $RANLIBS 7 | do 8 | # if [ -x "$RANLIB1" ]; then 9 | if [ -f "$RANLIB1" ]; then 10 | RANLIB=$RANLIB1 11 | break 12 | fi 13 | done 14 | 15 | if [ "$RANLIB" = "" ]; then 16 | RANLIB=`which ranlib` 17 | if [ "$RANLIB" = "" -o ! -x "$RANLIB" ]; then 18 | RANLIB=/bin/echo 19 | fi 20 | fi 21 | 22 | echo $RANLIB 23 | exit 0 24 | -------------------------------------------------------------------------------- /delegate9.9.13/mkdist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./install.sh 4 | cp -p lib/libopt_s.a $INST/dg$DGWER/DGROOT/lib 5 | cp -p lib/libgates.a $INST/dg$DGWER/DGROOT/lib 6 | 7 | DGTAR=dg$DGWER.tar 8 | 9 | ( 10 | cd $INST 11 | dgROOT=dg$DGWER/DGROOT 12 | tar cf $DGTAR \ 13 | dg$DGWER/CONTENTS.txt \ 14 | $dgROOT/bin \ 15 | $dgROOT/doc \ 16 | $dgROOT/etc \ 17 | $dgROOT/lib \ 18 | $dgROOT/subin 19 | 20 | gzip -f $DGTAR 21 | tar tfvz $DGTAR.gz 22 | ) 23 | -------------------------------------------------------------------------------- /delegate9.9.13/mkmkmk.c: -------------------------------------------------------------------------------- 1 | #include "maker/mkmake.c" 2 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/md5/comskip: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -e '/^A\./d' -e '/^Rivest/d' -e '/^RFC/d' -e '/ /d' -e '/^$/d' 4 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/md5/global.h: -------------------------------------------------------------------------------- 1 | /* GLOBAL.H - RSAREF types and constants 2 | */ 3 | /* PROTOTYPES should be set to one if and only if the compiler supports 4 | function argument prototyping. 5 | The following makes PROTOTYPES default to 0 if it has not already 6 | been defined with C compiler flags. 7 | */ 8 | #ifndef PROTOTYPES 9 | #define PROTOTYPES 0 10 | #endif 11 | /* POINTER defines a generic pointer type */ 12 | typedef unsigned char *POINTER; 13 | /* UINT2 defines a two byte word */ 14 | typedef unsigned short int UINT2; 15 | /* UINT4 defines a four byte word */ 16 | #ifdef m64 17 | typedef unsigned int UINT4; 18 | #else 19 | typedef unsigned long int UINT4; 20 | #endif 21 | /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. 22 | If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it 23 | returns an empty list. 24 | */ 25 | #if PROTOTYPES 26 | #define PROTO_LIST(list) list 27 | #else 28 | #define PROTO_LIST(list) () 29 | #endif 30 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/md5/md5cb.c: -------------------------------------------------------------------------------- 1 | #include "global.h" 2 | #include 3 | 4 | /* Note: Replace "for loop" with standard memset if possible. 5 | */ 6 | void MD5_memset (POINTER output, int value, unsigned int len) 7 | { 8 | /* 9 | unsigned int i; 10 | for (i = 0; i < len; i++) 11 | ((char *)output)[i] = (char)value; 12 | */ 13 | memset(output,value,len); 14 | } 15 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/md5/md5main.c: -------------------------------------------------------------------------------- 1 | #define main(ac,av) md5_main(ac,av) 2 | #include "mddriver.c" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/regex/regdummy.c: -------------------------------------------------------------------------------- 1 | void regdummy(){ 2 | } 3 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/regex/regfree.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include "utils.h" 7 | #include "regex2.h" 8 | 9 | /* 10 | - regfree - free everything 11 | = extern void regfree(regex_t *); 12 | */ 13 | void 14 | regfree(preg) 15 | regex_t *preg; 16 | { 17 | register struct re_guts *g; 18 | 19 | if (preg->re_magic != MAGIC1) /* oops */ 20 | return; /* nice to complain, but hard */ 21 | 22 | g = preg->re_g; 23 | if (g == NULL || g->magic != MAGIC2) /* oops again */ 24 | return; 25 | preg->re_magic = 0; /* mark it invalid */ 26 | g->magic = 0; /* mark it invalid */ 27 | 28 | if (g->strip != NULL) 29 | free((char *)g->strip); 30 | if (g->sets != NULL) 31 | free((char *)g->sets); 32 | if (g->setbits != NULL) 33 | free((char *)g->setbits); 34 | if (g->must != NULL) 35 | free(g->must); 36 | free((char *)g); 37 | } 38 | -------------------------------------------------------------------------------- /delegate9.9.13/pds/regex/utils.h: -------------------------------------------------------------------------------- 1 | /* utility definitions */ 2 | #ifdef _POSIX2_RE_DUP_MAX 3 | #define DUPMAX _POSIX2_RE_DUP_MAX 4 | #else 5 | #define DUPMAX 255 6 | #endif 7 | #define INFINITY (DUPMAX + 1) 8 | #define NC (CHAR_MAX - CHAR_MIN + 1) 9 | typedef unsigned char uch; 10 | 11 | /* switch off assertions (if not already off) if no REDEBUG */ 12 | #ifndef REDEBUG 13 | #ifndef NDEBUG 14 | #define NDEBUG /* no assertions please */ 15 | #endif 16 | #endif 17 | #include 18 | 19 | /* for old systems with bcopy() but no memmove() */ 20 | #ifdef USEBCOPY 21 | #define memmove(d, s, c) bcopy(s, d, c) 22 | #endif 23 | -------------------------------------------------------------------------------- /delegate9.9.13/putsigned.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /delegate9.9.13/rary/Finish.c: -------------------------------------------------------------------------------- 1 | #include "ystring.h" 2 | #include "proc.h" 3 | 4 | #undef Finish 5 | void Finish(int code) 6 | { 7 | exit(code); 8 | } 9 | void FinishX(PCStr(F),int L,int code){ 10 | exit(code); 11 | } 12 | -------------------------------------------------------------------------------- /delegate9.9.13/rary/readycc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "fpoll.h" 3 | 4 | int ready_cc(FILE *fp) 5 | { 6 | if( fp == NULL ) 7 | return 0; 8 | else return READYCC(fp); 9 | } 10 | int ready_CC(FILE *fp) 11 | { int rcc; 12 | 13 | rcc = READYCC(fp); 14 | if( 0 < rcc ) 15 | return rcc; 16 | else return 0; 17 | } 18 | 19 | -------------------------------------------------------------------------------- /delegate9.9.13/resolvy/ccres: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo $* 4 | $* 5 | if [ $? = 0 ]; then exit 0; fi 6 | 7 | echo "#### ignore above erros if the following trial succeeds ####" 8 | echo $* -DRES_STATE 9 | $* -DRES_STATE 10 | -------------------------------------------------------------------------------- /delegate9.9.13/resolvy/netdom.sample: -------------------------------------------------------------------------------- 1 | 15 HP.COM (Hewlett-Packard Company) 2 | 150.29 aist.go.jp (Agency of Industrial Science and Technology) 3 | 192.31.[197-206] etl.go.jp (Electrotechinical Laboratory) 4 | 192.50.77.225 www.delegate.org 5 | 192.50.77.0/25 xxx.yyy.zzz 6 | -------------------------------------------------------------------------------- /delegate9.9.13/setup-subin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | SUBINS="dgpam dgbind dgchroot dgcpnod" 4 | sudo sh -c "chown root $SUBINS; chmod 6550 $SUBINS" 5 | if [ $? != 0 ]; then 6 | su root -c "chown root $SUBINS; chmod 6550 $SUBINS" 7 | fi 8 | if [ $? != 0 ]; then 9 | su root -c "chown root $SUBINS; chmod 6550 $SUBINS" 10 | fi 11 | ls -l $SUBINS 12 | -------------------------------------------------------------------------------- /delegate9.9.13/src-srcsign.c: -------------------------------------------------------------------------------- 1 | const char *DELEGATE_srcsign(){ 2 | return 3 | "\n{SRCSIGN=9.9.2-pre3:20090215114817+0900:9fd8879636f9934b:\ 4 | Author@DeleGate.ORG:\ 5 | s7F+zgs2D6yvuw+K1c3xJg4C9AJLSTuOGi2TAIPVQ52AwW0aqwRdJl3vME+/AaJpt3gKiH7b\r\n\ 6 | od6uyzyUFdkSIOgaTrMMdJBYBvCm0s7YhOpqCePnThu4e4RnMYTTpsI693BTt80KFXHwz4X3\r\n\ 7 | KO5W8Q4noFBPBme3yWwx/frGMMw=\r\n\ 8 | }\n"+10; 9 | } 10 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/config/delegate.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/config/delegate.ico -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/config/dgca.cnf: -------------------------------------------------------------------------------- 1 | # 2 | # DGCA configuration 3 | # 4 | 5 | RANDFILE = .rand 6 | 7 | [ req ] 8 | prompt = no 9 | default_bits = 1024 10 | distinguished_name = req_distinguished_name 11 | 12 | [ ca ] 13 | default_ca = CA_default 14 | prompt = no 15 | 16 | [ policy_any ] 17 | countryName = optional 18 | stateOrProvinceName = optional 19 | localityName = optional 20 | organizationName = optional 21 | organizationalUnitName = optional 22 | commonName = optional 23 | emailAddress = supplied 24 | 25 | [ CA_default ] 26 | default_md = md5 27 | default_days = 365 28 | serial = serial 29 | new_certs_dir = certs 30 | database = dgcaidx.txt 31 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/config/smtpgate/@default/conf: -------------------------------------------------------------------------------- 1 | CONTROL/INHERIT: sendmail 2 | CONTROL/RECIPIENT: ${recipient} 3 | CONTROL/SERVER-HOST: ${recipient.mx} 4 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/back.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/back.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/binary.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/binary.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/binhex.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/binhex.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/blank.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/compressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/compressed.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/dir.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/dir.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/directory.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/directory.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/doc.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/document.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/document.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/dummy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/dummy.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/ftp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/ftp.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/gzip.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/gzip.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/image.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/image.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/index.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/index.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/index2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/index2.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/movie.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/movie.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/sound.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/sound.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/tar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/tar.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/telnet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/telnet.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/text.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/text.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/unknown.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/unknown.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/unknown.old.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/unknown.old.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/cern/uu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/cern/uu.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/DeleGateLogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/DeleGateLogo.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/DeleGateLogoTrans.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/DeleGateLogoTrans.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/NotFound.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/NotFound.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/Remote.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/Remote.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/center.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/center.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/default.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/default.ico -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/delegate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/delegate.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/delegate9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/delegate9.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/dg64-old.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/dg64-old.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/dg64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/dg64.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/down.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/favicon-old.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/favicon-old.ico -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/favicon.ico -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/favicon2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/favicon2.ico -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9L.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9L.bmp -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9L.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9L.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9LT.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9LT.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9LTW.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9LTW.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9RT.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9RT.bmp -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frog9n.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frog9n.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frogAdmin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frogAdmin.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frogHead.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frogHead.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frogSearch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frogSearch.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frogSearch.xbm: -------------------------------------------------------------------------------- 1 | #define fs_width 32 2 | #define fs_height 32 3 | static char fs_bits[] = { 4 | 0x00, 0x3e, 0x00, 0x00, 0x80, 0xc1, 0x00, 0x00, 0x60, 0x00, 0x03, 0x00, 5 | 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x08, 0x00, 0x78, 0x00, 6 | 0x88, 0x00, 0xc8, 0x00, 0xe4, 0x03, 0x90, 0x00, 0xf4, 0x07, 0x10, 0x01, 7 | 0xf4, 0x07, 0x30, 0x01, 0xfc, 0x0f, 0x30, 0x01, 0xf4, 0x07, 0x90, 0x01, 8 | 0xf8, 0x07, 0x98, 0x01, 0xe8, 0x03, 0xc8, 0x00, 0x90, 0x00, 0x7c, 0x01, 9 | 0x10, 0x00, 0x04, 0x01, 0x60, 0x00, 0x03, 0x02, 0xc0, 0xc1, 0x00, 0x02, 10 | 0x40, 0xfe, 0x00, 0x02, 0x40, 0xe0, 0x0f, 0x02, 0x40, 0x9c, 0x11, 0x02, 11 | 0x80, 0x80, 0x01, 0x01, 0x80, 0x01, 0x03, 0x01, 0x80, 0x00, 0x83, 0x01, 12 | 0x40, 0x00, 0x86, 0x03, 0x20, 0x00, 0x86, 0x04, 0x10, 0x00, 0x4c, 0x0c, 13 | 0x10, 0x00, 0x2c, 0x18, 0x20, 0x00, 0x38, 0x0c, 0x40, 0x00, 0x18, 0x06, 14 | 0xc0, 0x00, 0x00, 0x03, 0xbe, 0x00, 0x00, 0x7f}; 15 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/frogTrans.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/frogTrans.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/item.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/item.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/item.xbm: -------------------------------------------------------------------------------- 1 | #define item_width 16 2 | #define item_height 16 3 | static char item_bits[] = { 4 | 0x00, 0x00, 0xfe, 0x7f, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 5 | 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 6 | 0x02, 0x40, 0x02, 0x40, 0xfe, 0x7f, 0x00, 0x00}; 7 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/left.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/left.xbm: -------------------------------------------------------------------------------- 1 | #define left_width 32 2 | #define left_height 32 3 | static char left_bits[] = { 4 | 0xff,0xff,0xff,0xff,0x01,0x00,0x01,0x80,0xfd,0xff,0xff,0xbf,0x05,0xc0,0x01, 5 | 0xa0,0x05,0xe0,0x01,0xa0,0x05,0xf0,0x01,0xa0,0x05,0xf8,0x01,0xa0,0x05,0xfc, 6 | 0x01,0xa0,0x05,0xfe,0x01,0xa0,0x05,0xff,0x01,0xa0,0x85,0xff,0x01,0xa0,0xc5, 7 | 0xff,0x01,0xa0,0xe5,0xff,0x01,0xa0,0xf5,0xff,0x01,0xa0,0xfd,0xff,0x01,0xa0, 8 | 0xff,0xff,0x01,0xa0,0xff,0xff,0x01,0xa0,0xfd,0xff,0x01,0xa0,0xf5,0xff,0x01, 9 | 0xa0,0xe5,0xff,0x01,0xa0,0xc5,0xff,0x01,0xa0,0x85,0xff,0x01,0xa0,0x05,0xff, 10 | 0x01,0xa0,0x05,0xfe,0x01,0xa0,0x05,0xfc,0x01,0xa0,0x05,0xf8,0x01,0xa0,0x05, 11 | 0xf0,0x01,0xa0,0x05,0xe0,0x01,0xa0,0x05,0xc0,0x01,0xa0,0xfd,0xff,0xff,0xbf, 12 | 0x01,0x00,0x01,0x80,0xff,0xff,0xff,0xff}; 13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/left2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/left2.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/left3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/left3.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/next.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/next.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/next1l.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/next1l.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/prev.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/prev.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/prev.xbm: -------------------------------------------------------------------------------- 1 | #define prev_width 16 2 | #define prev_height 32 3 | static char prev_bits[] = { 4 | 0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xe0, 0x07, 0xf0, 0x0f, 0xf8, 0x1f, 5 | 0xfc, 0x3f, 0xfe, 0x7f, 0xff, 0xff, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 6 | 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 7 | 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 8 | 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 9 | 0xe0, 0x07, 0x00, 0x00}; 10 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/prev1l.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/prev1l.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/print.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/print.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/right.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/right2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/right2.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/right3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/right3.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/unread.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/unread.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/unread.xbm: -------------------------------------------------------------------------------- 1 | #define unread_width 8 2 | #define unread_height 8 3 | static char unread_bits[] = { 4 | 0x00, 0x7e, 0x42, 0x42, 0x42, 0x42, 0x7e, 0x00}; 5 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/icons/ysato/up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/icons/ysato/up.gif -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/302-moved.dhtml: -------------------------------------------------------------------------------- 1 | Redirection 2 | 3 |

Redirection

4 | 5 | This document can be found elsewhere. 6 | You see this message because your browser doesn't support 7 | automatic redirection handling. 8 | 9 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/305-useproxy.dhtml: -------------------------------------------------------------------------------- 1 |

Use Another Proxy

2 | 3 | You must use another proxy, 4 | or be without proxy to access the resource with the method.
5 | Your request is: 6 |
 7 | ${_request.mssg}
 8 | 
9 | You see this message because your browser (or proxy server on your side) 10 | does not support automatic proxy redirection (with 305 or 306 response 11 | status code) handling. 12 |

13 | This messages is generated by 14 | DeleGate proxy server 15 | which supports such automatic proxy redirection. 16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/401-unauth.dhtml: -------------------------------------------------------------------------------- 1 | Not Authorized: ${_request.line}
2 | Authorization required.

3 | 4 | ${genauth.genauth?${genauth.genuser}} 5 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/404-notfound.dhtml: -------------------------------------------------------------------------------- 1 | URL is Unknown or in Syntax Error 2 | 3 |

URL is Unknown or in Syntax Error

4 | 5 | Your request: 6 |
7 |     ${_request.url}
8 | 
9 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/407-unauthproxy.dhtml: -------------------------------------------------------------------------------- 1 | Not Authorized: ${_request.line}
2 | Proxy Authorization required.

3 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/426-upgrade.dhtml: -------------------------------------------------------------------------------- 1 | ${setenent} 2 | protocol error, must be in HTTPS/SSL.
3 | https://${hostport.clif}${request.url} 4 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/502-offline.dhtml: -------------------------------------------------------------------------------- 1 | Not in Cache 2 |

Not in Cache

3 | This DeleGate is running under cache-only mode.
4 | Click 5 | connectButtonhere 6 | to load from the remote server. 7 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/admin-ja.cnv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/builtin/mssgs/admin/admin-ja.cnv -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/cert-coms.dhtml: -------------------------------------------------------------------------------- 1 | ${admin.com.setupCA?${admin.openssl.req -new -x509}} 2 | ${admin.com.resetCA?${admin.openssl.resetCA}} 3 | ${admin.com.newCert?${admin.openssl.req -new}} 4 | ${admin.com.signCA?${admin.openssl.ca -batch -policy policy_any}} 5 | ${admin.com.refresh&admin.formv.cert-email?${evaleval.admin.setformv.cert-lastout.${admin.formv.cert-email}}} 6 | 7 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/cert-opts.dhtml: -------------------------------------------------------------------------------- 1 |   Optional Output 2 | no human-readable text 3 | no public-key 4 | 5 | 6 |   Encryption 7 | 8 | 9 |  ${tag:small:encrypt the private-key} 10 | ${admin.formv.cert-dodes.on? 11 | ${tag:small:with passphrase} 12 | 13 | 14 | } 15 | 16 | 17 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/cert-out.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.respmssg?: 2 | ${tag:small:command and result}:
3 | 6 |

7 | } 8 | 9 | ${not.admin.com.resetCA? 10 | 11 | 15 | 20 |
12 | 13 | ${button:submit:com:download:Download} 14 |
16 | 19 |
21 | } 22 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-MAXIMA.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.formv.Flag-showmaxima.on¬.admin.formv.Flag-showall? 2 | ${admin.dumpformv.-.conf-MAXIMA} 3 | ${exit} 4 | } 5 | 6 | 7 | 8 | 9 | 17 | 18 |
max. parallelism 10 |  ${tag:small:processes} 11 | 12 |  ${tag:small:listen} 13 | 14 |  ${tag:small:connections/client} 15 | 16 |
19 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-TIMEOUT.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.formv.Flag-showtimeout.on¬.admin.formv.Flag-showall? 2 | ${admin.dumpformv.-.conf-TIMEOUT} 3 | ${exit} 4 | } 5 | 6 | 7 | 8 | 9 | 19 | 20 |
timeouts 10 |  ${tag:small:i/o} 11 | 12 |  ${tag:small:accept} 13 | 14 |  ${tag:small:connect} 15 | 16 |  ${tag:small:dns} 17 | 18 |
21 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-confhelp.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.com.help?${exit}} 2 | 3 | 4 | This page is for editing configuration file. 5 | The simplest example of crating a new configuration is 6 | (1) enter the "user port number", 7 | (2) push the "compose" button, then 8 | (3) push the "store" button. 9 | 10 | 11 |

12 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-dataplus.dhtml: -------------------------------------------------------------------------------- 1 | 3 |
4 | ${tag:small:Other configurations} 5 | 6 |
7 | 8 | ${not.admin.formv.conf-data? ${exit}} 9 | 10 | ${admin.formv.Flag-showconfplus? 11 | 12 |
13 |
14 | : 15 | 16 | } 17 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-destserv.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.formv.conf-serverx? 2 | 3 | ${tag:small:destination server} 4 | 5 | 6 | 7 | 8 | 9 | : 10 | 11 | destination server 12 | 13 | 14 | 16 | ${tag:small: ex. servhost or servhost:9080} 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-listhelp.dhtml: -------------------------------------------------------------------------------- 1 | 2 | In this page, you can control the status of servers and manage 3 | configuration files of them. 4 | A server is identified by the name of configuration file. 5 | Check the configuration(s) then push 6 | or 7 | . 8 |
9 | To 10 | 11 | a configuration file, click the name of the configuration. 12 | To backup or remove configurations, check configuration(s) then push 13 | or 14 | . 15 |
16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-mount.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.formv.Flag-showmount.on¬.admin.formv.Flag-showall? 2 | ${admin.dumpformv.-.conf-MOUNT} 3 | ${exit} 4 | } 5 | 6 | 7 | 8 | 9 | 13 | 14 |
Mount 10 | ${~admin.foreach.conf-MOUNT.
} 11 |
12 |
15 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-reachable.dhtml: -------------------------------------------------------------------------------- 1 | server hosts 2 | ${tag:small:any hosts} 3 | ${tag:small:local network only} 4 | ${tag:small:none} 5 | ${tag:small:custom} 6 | 7 | 8 | ${admin.formv.conf-REACH.custom? 9 | reachable server hosts 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/conf-usrport.dhtml: -------------------------------------------------------------------------------- 1 | ${admin.conferr.conf-usrport?*}user port number 2 | ${tag:small: ex. 8080} 3 | 4 | ${tag:small:restrict interface} 5 | 6 | ${admin.formv.conf-usrpadrx? 7 | user port interface 8 | 9 | ${tag:small: ex. 192.168.1.1 or localhost} 10 | 11 | } 12 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/configmenu.dhtml: -------------------------------------------------------------------------------- 1 |
2 | ${admin.act.Editline? 3 | 4 | 5 | 6 | : 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | } 17 |
18 | 19 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/custom1.dhtml: -------------------------------------------------------------------------------- 1 | ${admin.formv.mode.customize? 2 | 3 |

4 | 5 |
6 | 7 | 8 | 9 |
From
To
10 |

11 | 12 | 13 | 14 | ${button:submit:com:addconv:add} 15 | 16 | ${type:button:Customize} 17 | 18 |

19 |
20 | 21 | } 22 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/file-create.dhtml: -------------------------------------------------------------------------------- 1 | ${not.admin.admpath.ADMDIR/shutout/? ${admin.putrespmssg.- no permittion to write this directory}${exit}} 2 | 3 | ${admin.formv.com.remove?${admin.remove_file.file-checked}${exit}} 4 | ${admin.formv.com.backup|admin.formv.com.backup?${exit}} 5 | 6 |

7 | 8 | Create 9 | 10 | 11 | ${button:submit:file-type:file:file} 12 | ${button:submit:file-type:directory:directory} 13 | ${button:submit:com:cancell:cancell} 14 |

15 | 16 | ${not.admin.formv.com&admin.formv.file-newname? 17 | ${admin.formv.file-type.file?${admin.create_file.file-newname}} 18 | ${admin.formv.file-type.directory?${admin.create_directory.file-newname}} 19 | } 20 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/file-show.dhtml: -------------------------------------------------------------------------------- 1 | 2 |


3 |
${admin.com.showtail?${admin.show_file.tail}:${admin.show_file}}
4 |
5 | 6 | 7 | 8 | 9 | 10 |
${admin.dump_common} 11 | ${button:submit:com:showtail:refresh tail} 12 | 15 |
16 | 17 | 18 |
${admin.respmssg}
19 | ${exit} 20 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/gaclSpec.dhtml: -------------------------------------------------------------------------------- 1 |

GACL Format

2 |
 3 | 
 4 | ACL-Version: GACL/0.1
 5 | Admin-Class: anonymous
 6 | User-Class: anonymous
 7 | Base-URL: nntp://news.server/
 8 | 
 9 | On:  news.group1
10 | Off: news.group2
11 | 
12 | 
13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/getACLform.dhtml: -------------------------------------------------------------------------------- 1 |
2 | Your Admin-ID: 3 | 4 | 5 |
6 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/head-sslauth.dhtml: -------------------------------------------------------------------------------- 1 |
2 | 3 | ${clif.withssl?${type:message:SSL enabled} 4 | ${auth.authorized?(${admin.openssl.version})} 5 | : ${type:message:NON-SSL!} 6 | ${clif.withadm?:[${type:button:Configure}]} 7 | ${admin.isset?enable} 8 | } 9 | 10 | ${auth.authorized? 11 | 12 | ${type:message:You are authorized as the administrator.} 13 | ${auth.with_pass?[${type:button:clear}]} 14 | [${type:button:HELP}] 15 | 16 | } 17 |
18 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/install.dhtml: -------------------------------------------------------------------------------- 1 | INSTALL 2 |
    3 |
  • download 4 |
  • compile 5 |
  • subin 6 |
  • chroot 7 |
  • dynamic libraries 8 |
9 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/menu-ext.dhtml: -------------------------------------------------------------------------------- 1 | ${type:button:Configure} | 2 | 3 | ${type:button:CA} | 4 | 5 | ${type:button:Screen} | 6 | 7 | ${type:button:System} | 8 | 9 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/printauth.dhtml: -------------------------------------------------------------------------------- 1 | Automatic auth.: ${auth.withident? 2 | You are <${client.ident}@${client.host}> who is 3 | ${auth.iauthorized?:not} authorized by the DeleGate. 4 | :You seem from ${client.host} without Identd.}
5 | Callback auth.: ${auth.with_pass? 6 | ${auth.bad_pass? 7 | Your authentication as <${auth.fauth}> failed. 8 | :${auth.rej_pass? 9 | You as <${auth.fauth}> are not authorized by the DeleGate. 10 | :${auth.authorized_pass? 11 | You as <${auth.fauth}> are authorized by the DeleGate. 12 | :${auth.fauthmsg}}}} 13 | : Your authentication information is empty. 14 | } 15 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/protomenu.dhtml: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/putACLform.dhtml: -------------------------------------------------------------------------------- 1 |
2 | Your Admin-ID: 3 | 4 |
5 | Your ACL-URL: 6 |
7 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/serv-coms.dhtml: -------------------------------------------------------------------------------- 1 | ${request.reloading? ${evaleval.admin.putrespmssg.${admin.formv.com} - ignored on Reloading ...}${exit}} 2 | ${admin.com.start?${admin.start_serv.serv-confname}} 3 | ${admin.com.restart?${admin.restart_serv.serv-confname}} 4 | ${admin.com.stop?${admin.stop_serv.serv-confname}} 5 | ${admin.com.backup?${admin.backup_conf}} 6 | ${admin.com.remove?${admin.remove_conf}} 7 | ${admin.com.new?${admin.new_conf.conf-newservname}} 8 | ${admin.com.restore?${admin.restore_conf}} 9 | 10 | ${admin.com.rename? 11 | ${admin.formv.conf-servname&admin.formv.conf-servname? 12 | ${admin.rename_conf.conf-servname.conf-newservname}} 13 | } 14 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/serv-help.dhtml: -------------------------------------------------------------------------------- 1 | 2 | ${admin.formv.help.status? 3 |

4 | 5 | 6 | 7 | 8 | 9 | 10 |
Statusmeaning
Inithe server is in Initialization
Abothe server Aborted in initialization
Runthe server is Running
Finthe server Finished and inactive
11 | } 12 | 13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/server-help-old.dhtml: -------------------------------------------------------------------------------- 1 |
    2 |
  • Automatic authentication will be done with Identd 3 | protocol if you have a Identd server running on your host.

    4 |

  • Callback authentication using FTP server. 5 | If you know the password to login user@host then 6 | you are supposed to be user@host. Let the DeleGate 7 | inspect it sending an authorization information as follows:
    8 |
      9 | Username: user@host
      10 | Password: password for the user@host
      11 |
    12 | If DeleGate succeed to login the host with given 13 | user name and password, then you are proved to be 14 | user@host. 15 |
16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/setup-auth.dhtml: -------------------------------------------------------------------------------- 1 |
2 | 12 |
3 | Authentication 4 | manual 5 |    6 | 7 | ${admin.formv.auth-type.pass? 8 | user 9 | pass 10 | :password} 11 |
13 | 14 | ${not.admin.formv.auth-type.pass? 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/setup-buttons.dhtml: -------------------------------------------------------------------------------- 1 | 2 | 9 |
3 | ${button:submit:com:apply:Apply:style="font-size:140%;font-color:green"} 4 | 5 | 6 | ${button:submit:com:restart:Restart:style=""} 7 | ${button:submit:com:terminate:Terminate:style=""} 8 |
10 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/setup-ioconf.dhtml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 |
3 | send 4 | nodelay 6 | mutex 8 |   9 |   10 | buff 11 | 13 | wait 14 | 16 |
19 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/showconf.dhtml: -------------------------------------------------------------------------------- 1 | Commandline arguments: 2 |
${admin.main.args}
3 | 4 |

5 | Whole configuration parameters: 6 |
${admin.statconf}
7 | 8 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/showlog.dhtml: -------------------------------------------------------------------------------- 1 | ${+TITLE=StartUP Log} 2 | ${include:head.dhtml} 3 | 4 |

${admin.showlog}
5 | 


--------------------------------------------------------------------------------
/delegate9.9.13/src/builtin/mssgs/admin/stop-self.dhtml:
--------------------------------------------------------------------------------
 1 | ${admin.formv.conf-checked._self_|admin.isself.conf-checked?
 2 |  ${not.admin.formv.conf-admpass?
 3 |   ${admin.dumpformv.-.conf-checked}
 4 |   
    5 | Login as the administrator to stop self. 6 | 7 | 8 | 9 |
    Username
    Password
    10 | ${button:submit:com:stop:STOP SELF:style="color:red"} 11 | ${button:submit:com:cancell:cancell} 12 |
13 |

14 | } 15 | } 16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/terminate.dhtml: -------------------------------------------------------------------------------- 1 | ${define.TITLE=${type:title:Terminated}} 2 | ${include:head.dhtml} 3 | 4 | Terminated 5 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/upload.dhtml: -------------------------------------------------------------------------------- 1 | ${+TITLE=DeleGate Server Administration} 2 | ${include:head.dhtml} 3 | 4 |

5 | 6 | 7 |
8 | 9 |
10 | 11 |

12 | Current cnfiguration:
13 |
${admin.getconfig}
14 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/version.dhtml: -------------------------------------------------------------------------------- 1 | The version of this DeleGate program 2 | 3 | 4 | 5 | 6 | 7 |
Version DeleGate/${ver}
Release Date ${verdate.date}
Licensee ${licensee}
License Custody ${license.custody}
8 |

9 | COPYRIGHT

${copyright}
10 |

11 | 12 |
13 |
14 | Status of this DeleGate executable file 15 | 16 | ${admin.foreachconf._self_. 17 | 18 | 19 | 20 | 21 | } 22 |
Compiled at%xd
File size%xs 
File CRC32%xX 
Configured at%m
23 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/admin/youareauth.dhtml: -------------------------------------------------------------------------------- 1 | You are authority 2 |

You are authority

3 | 4 | You are authenticated as an administrator 5 | who is authorized to do DeleGate Server Administration. 6 |
7 | ${include:printauth.dhtml} 8 |
9 | [Return to Admin] 10 | 11 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/applet.dhtml: -------------------------------------------------------------------------------- 1 |
2 | !! 3 | Warning!! 4 | Java applet on your browser 5 | (${client.useragent}) 6 | can dig a security hole. 7 | 8 |
9 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/client/welcome.dhtml: -------------------------------------------------------------------------------- 1 | # 2 | # dump request message 3 | # 4 | # set Cookie 5 | # 6 | # set Authorization 7 | # 8 | 9 |

CLIENT CONTROL

10 | (under construction) 11 | 12 |

13 | You are from: 14 |

15 | ${hostport.client}

16 | Current parallel sessions from your host: ${client.peersessions} 17 |

18 | 19 | The request number on this connection: ${client.requestserno} 20 |
21 | Your request messages is: 22 |
23 | ${_request.mssg}
24 | 
25 | 26 |
27 |
    28 |
  • CREATE CONTEXT / account / cookie 29 |
  • LOGGING CONTROL / watchdog / notification 30 |
  • VIEW HISTORY / hotlist 31 |
  • ACCESS CONTROL 32 |
33 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/config.dhtml: -------------------------------------------------------------------------------- 1 | Default Port Numbers 2 |
3 | ${services}
4 | 
5 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/file/ftp-banner.dhtml: -------------------------------------------------------------------------------- 1 | ${host.clif} PROXY-FTP server (DeleGate/${ver}) ready. 2 | @ @ 3 | ( - ) { ${verdate} } 4 | ${copyright} 5 | WWW: ${homepage} 6 | -- 7 | You can connect to a SERVER by `user' command: 8 | ftp> user username@SERVER 9 | or by `cd' command (after logged in as an anonymous user): 10 | ftp> cd //SERVER 11 | Cache is enabled by default and can be disabled by `cd .' (toggle) 12 | This (proxy) service is maintained by '${ADMIN}' 13 | ${include.silent:ftp-banner-postfix.dhtml}\ 14 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/file/ftpgw-anonauth.dhtml: -------------------------------------------------------------------------------- 1 | Authorization for anonymous FTP 2 |

Authorization for anonymous FTP


3 | 4 | This DeleGate server requires authorization information as follows: 5 | 6 | 7 | Username: your E-mail address
8 | Password: 9 | ${anonftpAuth.nopass? 10 | Any password will be accepted. 11 | :password for the DeleGate
12 | } 13 |
14 | 15 | ${anonftpAuth.nopass? 16 | : 17 | Ask the administrator of this server: <${ADMIN}> 18 | about necessary password to pass the DeleGate. 19 | } 20 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/file/ftpgw-header.dhtml: -------------------------------------------------------------------------------- 1 | ${isdir? 2 | FTP Directory ${anonymous?${site}:${site.hidepass}} ${path} 3 | FtpDirectory 4 | : 5 | FTP File ${anonymous?${site}:${site.hidepass}} ${path} 6 | FtpFile 7 | } 8 | ${anonymous?${ancestor}:${ancestor.hidepass}}
9 |
\
10 | 


--------------------------------------------------------------------------------
/delegate9.9.13/src/builtin/mssgs/file/ftpgw-tailer.dhtml:
--------------------------------------------------------------------------------
1 | 
2 |
3 | [${lines} files] 4 | [${resptime} seconds] 5 | ${cache.hit?[cached at ${cache.date}]} 6 | 7 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/adminGetACL.dhtml: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # A Template of DeleGate Access Control List (DGACL) 4 | # - current version DGDCL/0.1 is just tentative 5 | # 6 | ACL-Version: DGACL/0.1 7 | ACL-URL: ${acl.url} 8 | ACL-ID: ${acl.newid} 9 | 10 | # 11 | # Administrator: your E-mail address 12 | # 13 | Administrator: 14 | 15 | # 16 | # Admin-Status: open / anonymous 17 | # - open vote is visible for others 18 | # - open vote has 10 points weight, anonymous vote weights 1 point 19 | # 20 | Admin-Status: anonymous 21 | 22 | # 23 | # Base-URL: URL of the target NNTP server 24 | # 25 | Base-URL: nntp://${serv.hostport}/ 26 | 27 | # 28 | # You can control at most 20 newsgroups. 29 | # 30 | # On / Off: newsgroup 31 | # 32 | On: ${grp.name} 33 | Off: ${grp.name} 34 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/adminNewACL.dhtml: -------------------------------------------------------------------------------- 1 | ${include:../admin/adminNewACL.dhtml} 2 | 3 | # 4 | # Base-URL: URL of the target NNTP server 5 | # Do not rewrite the following line. 6 | # 7 | Base-URL: nntp://${serv.hostport}/ 8 | 9 | # 10 | # On / Off: newsgroup 11 | # 12 | # Now chose one of following lines and remove the `#' 13 | # at the top of the chosen line to show you selected it. 14 | 15 | #On: ${grp.name} 16 | #Off: ${grp.name} 17 | 18 | # 19 | # You can control more, but at most ${acl.max} newsgroups. 20 | # 21 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/adminShowACL.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE>Access Control List for nntp://${serv.hostport}/${grp.name}</TITLE> 2 | 3 | <PRE> 4 | # 5 | # DeleGate Access Control List 6 | # 7 | # Resources: nntp://${serv.hostport}/${grp.name} 8 | # Userclass: ${user.class} 9 | # 10 | # [<I>Date-Time</I>] On/Off <I>User-Class</I> <I>Admin-Class</I> <I>Admin-ID</I> 11 | # 12 | 13 | ${grp.Nadmin?${grp.acl}:<I>(no access control list for the newsgroup)</I>} 14 | 15 | # 16 | # Total: Administrators = ${grp.Nadmin}, Subscribe = ${grp.Nsubsc}, Unsubscribe = ${grp.Nunsub} 17 | # 18 | </PRE> 19 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/art-authadm.dhtml: -------------------------------------------------------------------------------- 1 | <TABLE width=100% border=0> 2 | <TR><TD width=15%> 3 | Email-Address 4 | </TD><TD> 5 | <INPUT type=text size=32 name=adminEmail value="${print%.formv.adminEmail}" ${formv._admresp_.*Email-Address?style="background-color:#FFE0E0"}> 6 | <small>(the Poster's Address)</small> 7 | </TD></TR> 8 | <TR><TD width=15%> 9 | Auth-Key 10 | </TD><TD> 11 | <INPUT type=text size=12 name=authKey ${formv.authKey?value="${print%.formv.authKey}":style="background-color:#FFE0E0"}> 12 | <small>to authenticate that you are the poster of the article.</small> 13 | </TD></TR> 14 | <TR><TD valign=top> 15 | <INPUT type=submit name=com value=refresh style="font-size:small;padding=0"> 16 | </TD><TD> 17 | ${NOT.formv.authKey?${include:art-authkey.dhtml}} 18 | </TD></TR> 19 | </TABLE> 20 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/art-authkey.dhtml: -------------------------------------------------------------------------------- 1 | <TABLE border=0 cellpadding=4 cellspacing=0 bgcolor=#F0F0F0><TR><TD> 2 | <small> 3 | If you don't have the Auth-Key yet, 4 | let the DeleGate send it to you (the poseter of the message) 5 | via mail. 6 | Fill the Email-Address above, 7 | copy the pass-String for confirmation, 8 | and push sendKey, 9 | then wait the mail to arrive including your Auth-Key. 10 | <BR> 11 | ${include:art-echopass.dhtml} 12 | <BR> 13 | <INPUT type=submit name=com value=sendKey style="font-size:small;padding=0"> 14 | </small> 15 | </TD></TR></TABLE> 16 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/art-comment.dhtml: -------------------------------------------------------------------------------- 1 | <INPUT type=hidden name=commentSize value=400> 2 | <P> 3 | <UL> 4 | <TABLE width=90% border=0> 5 | <TR><TD width=140pt>Your Email-Address</TD> 6 | <TD align=left><INPUT type=text name=adminEmail size=40></TD> 7 | </TR> 8 | <TR><TD width=140pt>Your Auth-Key</TD> 9 | <TD align=left> 10 | <INPUT type=text name=authKey size=14 value="${print%.formv.authKey}"></TD> 11 | </TR> 12 | ${formv.authKey?: 13 | <TR><TD valign=top> 14 | ${button:submit:com:comment:auth:style="font-size:small"}</TD> 15 | <TD>${include:art-authkey.dhtml}</TD> 16 | </TR> 17 | } 18 | 19 | </TABLE> 20 | Comment:<BR> 21 | <TEXTAREA cols=80 rows=5 name=comment> 22 | </TEXTAREA> 23 | <BR> 24 | ${formv.authKey?<small>${include:art-echopass.dhtml}</small><BR>} 25 | ${button:submit:com:sendComment:Send Comment} 26 | </UL> 27 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/art-echopass.dhtml: -------------------------------------------------------------------------------- 1 | Copy this pass-String 2 | <INPUT type=hidden name=clientPassQ value="${client.pass}"> 3 | <INPUT type=text size=10 value="${client.pass}" readonly 4 | style="font-family:monospace"> 5 | to here &gt;&gt; 6 | <INPUT type=text size=10 name=clientPassA 7 | style="font-family:monospace;${NOT.formv._admresp_.*passString?:background-color:#FFE0E0}"> 8 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/artline.dhtml: -------------------------------------------------------------------------------- 1 | <DT>${art.NewSubj?<NOBR><A HREF=${art.Anum}><B><FONT color=#101080>${art.NewSubj}</FONT></B></A></NOBR><BR>} 2 | &nbsp;&nbsp;${art.STime} 3 | <CODE>${art.XrefList?<A HREF="${art.XrefList}">*</A>:.}</CODE> 4 | <A HREF=${art.Anum}>${%04art.Anum}</A>&nbsp; 5 | <I>${art.From}</I> 6 | ${art.Lines?[${art.Lines}]} 7 | ${art.putDigest?<DD> 8 | ${formv.fmt.print?&nbsp;:<A TARGET=f-body HREF="${art.Anum}">___</A>} 9 | <font color=#101040><small>${art.digest}</small></font>} 10 | </DT> 11 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/artlistfooter.dhtml: -------------------------------------------------------------------------------- 1 | <TABLE width=100% border=0 bgcolor=#8080FF cellpadding=1 cellspacing=0> 2 | <TR> 3 | <FORM ACTION="${url.self}" METHOD=GET> 4 | <TD> 5 | <small>&nbsp;</small> 6 | ${putmenu? 7 | ${noadmin?: 8 | <A HREF="?Admin"><IMG BORDER=0 ALIGN=MIDDLE ALT="admin" SRC="${icon.frogAdmin.gif}"></A> 9 | } 10 | <A HREF=../-search?${grp.print}><IMG BORDER=0 ALIGN=MIDDLE ALT="search" SRC="${icon.frogSearch.gif}"></A> 11 | } 12 | ${include:artbuttons.dhtml} 13 | ${putmenu? 14 | <INPUT type=image name=fmt value=Print style="border:none" SRC="${icon.print.gif}" ALT="print" ALIGN=MIDDLE> 15 | </TD></TR><TR bgcolor=#C0C0D0><TD> 16 | <small>${include:artmenu.dhtml}</small> 17 | } 18 | </TD> 19 | </FORM> 20 | </TR> 21 | </TABLE> 22 | <small><FONT color=gray>${expires?${expires}}</FONT></small> 23 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/artmenu.dhtml: -------------------------------------------------------------------------------- 1 | <A HREF="../">[Top</A>/<A HREF="../${grp.up}"><B>Up</B>]</A> 2 | 3 | ${num.min<num.anum2? <A HREF="${ref.top}">[oldest]</A> : [oldest]} 4 | - 5 | ${num.min<num.anum1? 6 | <A HREF="${ref.purl1}">[Older</A>+<A HREF="${ref.purlp}">chunk]</A> 7 | :[Older-chunk] 8 | } 9 | - 10 | ${num.anum2<num.max? 11 | <A HREF="${ref.nurl1}">[Newer</A>+<A HREF="${ref.nurlp}">chunk]</A> 12 | :[Newer-chunk] 13 | } 14 | - 15 | ${num.anum1<num.max? <A HREF="${ref.end}">[newest</A>:[newest} 16 | + 17 | ${0<num.anum1? <A HREF="../${grp.print}/?Expire">Check]</A> : Check]} 18 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/artnone.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE>Article ${_grp.print}/${num.anum1}</TITLE> 2 | <META name=description content="non-existent"> 3 | <BODY> 4 | ${putmenu? 5 | Article <B>${_grp.print}</B>/<B>${num.anum1}</B> 6 | of [${num.min}-${num.max}] on the server <I>${serv.hostport}</I> 7 | } 8 | <BR> 9 | ${include:artbuttons.dhtml} 10 | <BR> 11 | ${putmenu? ${include:artmenu.dhtml}} 12 | <HR> 13 | The article does not exist. 14 | <HR> 15 | </BODY> 16 | <!-- generated by DeleGate/${ver} --> 17 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/getpass.dhtml: -------------------------------------------------------------------------------- 1 | <FORM> 2 | <TABLE width="100%"> 3 | <TR> 4 | <TD bgcolor=#E0E0E0> 5 | &nbsp;Sending password to:<BR> 6 | <Table> 7 | <Tr> 8 | <Td>&nbsp;&nbsp;</Td><Td>Your E-mail</Td><Td><INPUT size=55 type=text name=email value="${print%s.formv.email}"></Td> 9 | </Tr> 10 | <Tr> 11 | <Td>&nbsp;&nbsp;</Td><Td></Td><Td>copy the text in this image 12 | <IMG ALIGN=middle SRC="http://dummyimage.com/80x24/000/fff.gif&text=${estamp.short}"> 13 | &nbsp;to here&nbsp; <INPUT size=10 tyep=text name=echo value=""> 14 | </Td> 15 | </Tr> 16 | <Tr> 17 | <Td>&nbsp;</Td> 18 | <Td><INPUT type=submit name=fmt value="Sendpass"></Td> 19 | </Tr> 20 | </Table> 21 | </TD></TR> 22 | </TABLE> 23 | <INPUT type=hidden name=msgid value="${art.Message_ID}"> 24 | <INPUT type=hidden name=Pragma value="no-cache"> 25 | <INPUT type=hidden name=estamp value="${estamp.gen}"> 26 | </FORM> 27 | <HR> 28 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/jump.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE> NNTP/HTTP DeleGate </TITLE> 2 | 3 | ${req.search? 4 | Jump to <A HREF="${req.search}">${req.search}</A> 5 | :Jump to <A HREF="./">TOP</A> 6 | } 7 | <HR> 8 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/ngline.dhtml: -------------------------------------------------------------------------------- 1 | ${grp.Layered? 2 | ${%08grp.Nact1} / ${%05grp.Nchild1} 3 | ${1<grp.Nchild1? <A HREF="${grp.Group1}"><B>${_grp.Group1}</B></A> 4 | : <A HREF="${grp.Group1}">${_grp.Group1}</A>} 5 | : ${%06grp.Min1} - ${%06grp.Max1} 6 | <A HREF="${grp.Group1}/">${_grp.Group1}/</A> 7 | }<BR> 8 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/nglist.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE> Newsgroups ${_grp.real} </TITLE> 2 | 3 | ${noadmin?: 4 | <A HREF="${grp.real}?Admin"><IMG ALT="admin" SRC="${icon.frogAdmin.gif}" ALIGN=MIDDLE></A> 5 | } 6 | <A HREF=-search?${grp.print}><IMG ALT="search" SRC="${icon.frogSearch.gif}" ALIGN=MIDDLE></A> 7 | <A HREF="./"><IMG ALT="top" SRC="${icon.up.gif}" ALIGN=MIDDLE></A> 8 | <A HREF="./">[Top</A>/<A HREF="${grp.up}"><B>Up</B>]</A> 9 | <B>Newsgroups `${_grp.real}'</B> 10 | 11 | ${grp.Layered?[Layered]/[<A HREF="${grp.real}?Flat">Flat</A>] 12 | :[Flat]/[<A HREF="${grp.real}?Layered">Layered</A>]} view. 13 | 14 | <A HREF=Jump?Menu>[Jump]</A> 15 | <HR> 16 | 17 | ${grp.list} 18 | 19 | <HR> 20 | ${num.article} articles, ${num.match}/${num.all} groups (${num.empty} empty) 21 | <BR> 22 | ${expires} 23 | <!-- generated by DeleGate/${ver} --> 24 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/reply.dhtml: -------------------------------------------------------------------------------- 1 | <PRE> 2 | -- <A HREF="mailto:${arturl.Reply_To}?\ 3 | X-Newsgroups=${art.Newsgroups}&\ 4 | Subject=${arturl.Subject}&\ 5 | References=%3C${arturl.Message_ID}%3E">\ 6 | REPLYING TO THE FOLLOWING MESSAGE</A> -- 7 | From\: ${art.From} 8 | Date\: ${art.Date} 9 | Message-ID: &lt;${art.Message_ID}&gt; 10 | -- 11 | ${art.body} 12 | </PRE>${tailer.off}\ 13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/sendmail.dhtml: -------------------------------------------------------------------------------- 1 | <HR> 2 | Forwarding the message 3 | ${Sendmail? 4 | <FONT color=green>is finished successfully</FONT>. 5 | : 6 | <FONT color=red>FAILED</FONT> (${error.reason}) 7 | } 8 | <HR> 9 | 10 | ${putmenu? 11 | <BR><B><BIG>${art.Subject}</BIG></B><BR> 12 | ${art.Summary?-- ${art.Summary} --<P>} 13 | <DIV align=right> 14 | ${art.Date} 15 | <I>${hide.href?${art.From}:<A HREF="mailto:${arturl.From}">${art.From}</A>} 16 | </I><BR> 17 | <I> ${art.Organization} </I> 18 | </DIV> 19 | <HR> 20 | } 21 | <PRE> 22 | ${art.body} 23 | </PRE> 24 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/sendpass.dhtml: -------------------------------------------------------------------------------- 1 | <HR> 2 | Sending password to you 3 | ${estamp.shortok? 4 | ${Sendpass? 5 | <FONT color=green>is finished successfully</FONT>. 6 | : 7 | <FONT color=red>FAILED</FONT> (${error.reason}) 8 | } 9 | : 10 | <FONT color=red>FAILED</FONT> (${error.reason}) 11 | } 12 | <HR> 13 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/news/top.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE> NNTP/HTTP DeleGate </TITLE> 2 | 3 | <H2> NNTP to HTTP DeleGate </H2> 4 | 5 | <ISINDEX> 6 | 7 | <H2>Usage</H2><UL> 8 | <LI>Jump to <A HREF=./>Top</A><P> 9 | <LI>Search newsgroups by name 10 | <UL> 11 | <LI> <I>news.group</I> ... newsgroups of name <I>news.group.*</I> 12 | <LI> <I>*group</I> .. newsgroups with the partial name <I>group</I> 13 | </UL><P> 14 | <LI>Jump to articles 15 | <UL> 16 | <LI> <I>news.group</I>/ ... the latest articles of <I>news.group</I> 17 | <LI> <I>news.group</I>/<I>articleNumber</I> 18 | <LI> <I>news.group</I>/<I>number1</I> - <I>number2</I> 19 | </UL> 20 | </UL> 21 | <HR> 22 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/nonCERNproxy.dhtml: -------------------------------------------------------------------------------- 1 | <TITLE> DeleGate for Non-CERN-Proxy clients </TITLE> 2 | 3 | <H2> 4 | <X-D T=LOGOMARK A=MIDDLE> 5 | DeleGate for Non-CERN-Proxy clients </H2> 6 | 7 | <ISINDEX PROMPT="URL "> 8 | 9 | <B>Usage</B>: Enter <I>URL</I>, then it will be redirected 10 | to <I>gateway-_-URL</I> notation and will be relayed 11 | by the DeleGate.<BR> 12 | 13 | <B>Caution</B>: If your client supports CERN-Proxy, 14 | you should specify the DeleGate for CERN-Proxy. 15 | <P> 16 | 17 | <X-D T=FROG_VER A=MIDDLE> 18 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/qc: -------------------------------------------------------------------------------- 1 | CONNECT lo:21 HTTP/1.0 2 | 3 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/robots.dhtml: -------------------------------------------------------------------------------- 1 | #### Disallow the redirection by the DeleGate-_-URL notation 2 | User-agent: * 3 | Disallow: /-_- 4 | Disallow: /=@= 5 | ${no-robots.mount} 6 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/telnet/telnet-banner.dhtml: -------------------------------------------------------------------------------- 1 | -- 2 | -- @ @ ${host.clif} PROXY-telnet server DeleGate/${ver} 3 | -- ( - ) { Hit '?' or enter `help' for help. } 4 | ${verdate} 5 | ${copyright} 6 | WWW: ${homepage} 7 | -- -- -- This (proxy) service is maintained by '${ADMIN}' 8 | ${getccx?-- -- -- preset CHARCODE=${setccx}${NL}}\ 9 | ${include.silent:telnet-banner-postfix.dhtml}\ 10 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/telnet/telnet-cantconn.dhtml: -------------------------------------------------------------------------------- 1 | -- 2 | -- @"@ 3 | -- ( o ) { Cannot connect to: `${_server.host}:${server.port}' }\ 4 | ${cantconn.rejected? 5 | !!!!!!!! FORBIDDEN by DeleGate}\ 6 | ${cantconn.unknown? 7 | !!!!!!!! UNKNOWN host}\ 8 | ${cantconn.timeout? 9 | !!!!!!!! connection TIMEOUT}\ 10 | ${cantconn.refused? 11 | !!!!!!!! connection REFUSED (no server?)}\ 12 | ${cantconn.unreach? 13 | !!!!!!!! UNREACHABLE host/net} 14 | -------------------------------------------------------------------------------- /delegate9.9.13/src/builtin/mssgs/telnet/telnet-help.dhtml: -------------------------------------------------------------------------------- 1 | -- Telnet-proxy ${verdate} 2 | -- Usage: 3 | -- c host -- connect to the `host' 4 | -- -ssh.host -- connect to the SSH server on the host 5 | -- x [host:disp#] -- set X proxy to the X server `host:disp#' 6 | -- a host -- start X proxy to accept from the X client `host' 7 | -- j [j|k|s|e|t] -- Japanese character code conversion 8 | -- quit / exit -- disconnect 9 | -- 10 | -- Note: The only acceptable X client host is the Telnet server host specified 11 | -- in "c Telnet-server-host". You can change it by 'a X-client-host'. 12 | -------------------------------------------------------------------------------- /delegate9.9.13/src/delegated.conf: -------------------------------------------------------------------------------- 1 | ## delegated.conf 2 | -vQ 3 | -vq 4 | TIMEOUT=shutout:60 5 | -------------------------------------------------------------------------------- /delegate9.9.13/src/inets_lib.c: -------------------------------------------------------------------------------- 1 | #define LIBRARY 2 | #include "inets.c" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/src/mkmkmk.c: -------------------------------------------------------------------------------- 1 | #include "../maker/mkmake.c" 2 | -------------------------------------------------------------------------------- /delegate9.9.13/src/randld: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #### FreeBSD 2.2.5 4 | ld \ 5 | -Bstatic \ 6 | -o delegated builtin.o delegated.o commands.o croncom.o remote.o \ 7 | -L../lib \ 8 | -ldelegate -lresolvy -lteleport -lmd5 -lcfi -lrary -lmimekit -lsubst \ 9 | -e start /usr/lib/crt0.o -lgcc -lc 10 | 11 | -------------------------------------------------------------------------------- /delegate9.9.13/src/smtp_lib.c: -------------------------------------------------------------------------------- 1 | #define LIBRARY 2 | #include "smtp.c" /*{inline}*/ 3 | -------------------------------------------------------------------------------- /delegate9.9.13/src/win32-dg.rc: -------------------------------------------------------------------------------- 1 | #include <winres.h> 2 | ID_APP ICON "builtin/icons/ysato/frog9LTW.ico" 3 | -------------------------------------------------------------------------------- /delegate9.9.13/src/win32-dg.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/delegate9.9.13/src/win32-dg.res -------------------------------------------------------------------------------- /delegate9.9.13/srcsign.c: -------------------------------------------------------------------------------- 1 | const char *DELEGATE_srcsign(){ 2 | return 3 | "\n{SRCSIGN=9.9.13:20141031194217+0900:6fdc87e522763a5e:\ 4 | Author@DeleGate.ORG:\ 5 | hPtX79eyOAnj9pjzcHNLBa2+1uhqjZszJ1UM7y4wXOikCGaUA4aQmK+kuq0QC/hng7lskzc9\r\n\ 6 | aIjEgOpDo5KF1odrli0RsQJI8nkGIWAW3uYxIFD70pwSAGNteRViGCmbIdO95QJfTjgTfKhp\r\n\ 7 | TQV3AYSDfyHF4li8dewmsd+oRrA=\r\n\ 8 | }\n"+10; 9 | } 10 | const char *DELEGATE_SrcSign(){ 11 | return 12 | "\n{SrcSign=9.9.2-pre3:20090215114817+0900:9fd8879636f9934b:\ 13 | Author@DeleGate.ORG:\ 14 | s7F+zgs2D6yvuw+K1c3xJg4C9AJLSTuOGi2TAIPVQ52AwW0aqwRdJl3vME+/AaJpt3gKiH7b\r\n\ 15 | od6uyzyUFdkSIOgaTrMMdJBYBvCm0s7YhOpqCePnThu4e4RnMYTTpsI693BTt80KFXHwz4X3\r\n\ 16 | KO5W8Q4noFBPBme3yWwx/frGMMw=\r\n\ 17 | }\n"+10; 18 | } 19 | -------------------------------------------------------------------------------- /delegate9.9.13/teleport/teleport.h: -------------------------------------------------------------------------------- 1 | #include <stdio.h> 2 | #include <time.h> 3 | #include <stdlib.h> 4 | #include "ystring.h" 5 | #include "ysocket.h" 6 | #include "vsignal.h" 7 | #include "fpoll.h" 8 | #include "proc.h" 9 | #include "dglib.h" 10 | 11 | void callDelegate1(int clsock,PCStr(msg),PCStr(telehost),int teleport); 12 | void addBeforeExit(PCStr(what),vFUNCP func,void *arg); 13 | int Write(int fd,PCStr(buf),int len); 14 | int connectToMyself(PCStr(what)); 15 | void shiobar(PCStr(script)); 16 | 17 | int QZencode(int ctx,PCStr(prefix),PVStr(buf),PCStr(ibuf),int len); 18 | int QZdecode(int ctx,PVStr(obuf),PCStr(buf),int len); 19 | -------------------------------------------------------------------------------- /openssh-5.9p1/CREDITS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/openssh-5.9p1/CREDITS -------------------------------------------------------------------------------- /openssh-5.9p1/LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/openssh-5.9p1/LICENCE -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2" 3 | 4 | gnome-ssh-askpass1: gnome-ssh-askpass1.c 5 | $(CC) `gnome-config --cflags gnome gnomeui` \ 6 | gnome-ssh-askpass1.c -o gnome-ssh-askpass1 \ 7 | `gnome-config --libs gnome gnomeui` 8 | 9 | gnome-ssh-askpass2: gnome-ssh-askpass2.c 10 | $(CC) `pkg-config --cflags gtk+-2.0` \ 11 | gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \ 12 | `pkg-config --libs gtk+-2.0 x11` 13 | 14 | clean: 15 | rm -f *.o gnome-ssh-askpass1 gnome-ssh-askpass2 gnome-ssh-askpass 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/aix/pam.conf: -------------------------------------------------------------------------------- 1 | # 2 | # PAM configuration file /etc/pam.conf 3 | # Example for OpenSSH on AIX 5.2 4 | # 5 | 6 | # Authentication Management 7 | sshd auth required /usr/lib/security/pam_aix 8 | OTHER auth required /usr/lib/security/pam_aix 9 | 10 | # Account Management 11 | sshd account required /usr/lib/security/pam_aix 12 | OTHER account required /usr/lib/security/pam_aix 13 | 14 | # Password Management 15 | sshd password required /usr/lib/security/pam_aix 16 | OTHER password required /usr/lib/security/pam_aix 17 | 18 | # Session Management 19 | sshd session required /usr/lib/security/pam_aix 20 | OTHER session required /usr/lib/security/pam_aix 21 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/caldera/openssh.spec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MewX/Psiphon3-for-Linux/33bdec63a61e2b81cc67a9b8843616b954772141/openssh-5.9p1/contrib/caldera/openssh.spec -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/caldera/sshd.pam: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required /lib/security/pam_pwdb.so shadow nodelay 3 | account required /lib/security/pam_nologin.so 4 | account required /lib/security/pam_pwdb.so 5 | password required /lib/security/pam_cracklib.so 6 | password required /lib/security/pam_pwdb.so shadow nullok use_authtok 7 | session required /lib/security/pam_pwdb.so 8 | session required /lib/security/pam_limits.so 9 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/cygwin/sshd-inetd: -------------------------------------------------------------------------------- 1 | # This file can be used to enable sshd as a slave of the inetd service 2 | # To do so, the line below should be uncommented. 3 | @COMMENT@ ssh stream tcp nowait root /usr/sbin/sshd sshd -i 4 | 5 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/hpux/egd: -------------------------------------------------------------------------------- 1 | # EGD_START: Set to 1 to start entropy gathering daemon 2 | # EGD_ARGS: Command line arguments to pass to egd 3 | # EGD_LOG: EGD stdout and stderr log file (default /etc/opt/egd/egd.log) 4 | # 5 | # To configure the egd environment: 6 | 7 | # groupadd egd 8 | # useradd -g egd egd 9 | # mkdir -p /etc/opt/egd 10 | # chown egd:egd /etc/opt/egd 11 | # chmod 711 /etc/opt/egd 12 | 13 | EGD_START=1 14 | EGD_ARGS='/etc/opt/egd/entropy' 15 | EGD_LOG= 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/hpux/sshd: -------------------------------------------------------------------------------- 1 | # SSHD_START: Set to 1 to start SSH daemon 2 | # SSHD_ARGS: Command line arguments to pass to sshd 3 | # 4 | SSHD_START=1 5 | SSHD_ARGS= 6 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/redhat/gnome-ssh-askpass.csh: -------------------------------------------------------------------------------- 1 | setenv SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass 2 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/redhat/gnome-ssh-askpass.sh: -------------------------------------------------------------------------------- 1 | SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass 2 | export SSH_ASKPASS 3 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/redhat/sshd.pam: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required pam_stack.so service=system-auth 3 | account required pam_nologin.so 4 | account required pam_stack.so service=system-auth 5 | password required pam_stack.so service=system-auth 6 | session required pam_stack.so service=system-auth 7 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/redhat/sshd.pam.old: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required /lib/security/pam_pwdb.so shadow nodelay 3 | auth required /lib/security/pam_nologin.so 4 | account required /lib/security/pam_pwdb.so 5 | password required /lib/security/pam_cracklib.so 6 | password required /lib/security/pam_pwdb.so shadow nullok use_authtok 7 | session required /lib/security/pam_pwdb.so 8 | session required /lib/security/pam_limits.so 9 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/sshd.pam.freebsd: -------------------------------------------------------------------------------- 1 | sshd auth required pam_unix.so try_first_pass 2 | sshd account required pam_unix.so 3 | sshd password required pam_permit.so 4 | sshd session required pam_permit.so 5 | 6 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/sshd.pam.generic: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required /lib/security/pam_unix.so shadow nodelay 3 | account required /lib/security/pam_nologin.so 4 | account required /lib/security/pam_unix.so 5 | password required /lib/security/pam_cracklib.so 6 | password required /lib/security/pam_unix.so shadow nullok use_authtok 7 | session required /lib/security/pam_unix.so 8 | session required /lib/security/pam_limits.so 9 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/suse/rc.config.sshd: -------------------------------------------------------------------------------- 1 | # 2 | # Start the Secure Shell (SSH) Daemon? 3 | # 4 | START_SSHD="yes" 5 | 6 | -------------------------------------------------------------------------------- /openssh-5.9p1/contrib/suse/sysconfig.ssh: -------------------------------------------------------------------------------- 1 | ## Path: Network/Remote access/SSH 2 | ## Description: SSH server settings 3 | ## Type: string 4 | ## Default: "" 5 | ## ServiceRestart: sshd 6 | # 7 | # Options for sshd 8 | # 9 | SSHD_OPTS="" 10 | -------------------------------------------------------------------------------- /openssh-5.9p1/fixpaths: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # fixpaths - substitute makefile variables into text files 4 | # Usage: fixpaths -Dsomething=somethingelse ... 5 | 6 | die() { 7 | echo $* 8 | exit -1 9 | } 10 | 11 | test -n "`echo $1|grep -- -D`" || \ 12 | die $0: nothing to do - no substitutions listed! 13 | 14 | test -n "`echo $1|grep -- '-D[^=]\+=[^ ]\+'`" || \ 15 | die $0: error in command line arguments. 16 | 17 | test -n "`echo $*|grep -- ' [^-]'`" || \ 18 | die Usage: $0 '[-Dstring=replacement] [[infile] ...]' 19 | 20 | sed `echo $*|sed -e 's/-D\([^=]\+\)=\([^ ]*\)/-e s=\1=\2=g/g'` 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /openssh-5.9p1/md5crypt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ---------------------------------------------------------------------------- 3 | * "THE BEER-WARE LICENSE" (Revision 42): 4 | * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you 5 | * can do whatever you want with this stuff. If we meet some day, and you think 6 | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 | * ---------------------------------------------------------------------------- 8 | */ 9 | 10 | /* $Id: md5crypt.h,v 1.4 2003/05/18 14:46:46 djm Exp $ */ 11 | 12 | #ifndef _MD5CRYPT_H 13 | #define _MD5CRYPT_H 14 | 15 | #include "config.h" 16 | 17 | #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) 18 | 19 | int is_md5_salt(const char *); 20 | char *md5_crypt(const char *, const char *); 21 | 22 | #endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */ 23 | 24 | #endif /* MD5CRYPT_H */ 25 | -------------------------------------------------------------------------------- /openssh-5.9p1/mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman <friedman@prep.ai.mit.edu> 4 | # Created: 1993-05-16 5 | # Public domain 6 | 7 | # $Id: mkinstalldirs,v 1.2 2003/11/21 12:48:55 djm Exp $ 8 | 9 | errstatus=0 10 | 11 | for file 12 | do 13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 14 | shift 15 | 16 | pathcomp= 17 | for d 18 | do 19 | pathcomp="$pathcomp$d" 20 | case "$pathcomp" in 21 | -* ) pathcomp=./$pathcomp ;; 22 | esac 23 | 24 | if test ! -d "$pathcomp"; then 25 | echo "mkdir $pathcomp" 26 | 27 | mkdir "$pathcomp" || lasterr=$? 28 | 29 | if test ! -d "$pathcomp"; then 30 | errstatus=$lasterr 31 | fi 32 | fi 33 | 34 | pathcomp="$pathcomp/" 35 | done 36 | done 37 | 38 | exit $errstatus 39 | 40 | # mkinstalldirs ends here 41 | -------------------------------------------------------------------------------- /openssh-5.9p1/obfuscate.h: -------------------------------------------------------------------------------- 1 | #ifndef _OBFUSCATE_H 2 | #define _OBFUSCATE_H 3 | 4 | void obfuscate_receive_seed(int); 5 | void obfuscate_send_seed(int); 6 | void obfuscate_set_keyword(const char *); 7 | void obfuscate_input(u_char *, u_int); 8 | void obfuscate_output(u_char *, u_int); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /openssh-5.9p1/openbsd-compat/charclass.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Public domain, 2008, Todd C. Miller <Todd.Miller@courtesan.com> 3 | * 4 | * $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $ 5 | */ 6 | 7 | /* OPENBSD ORIGINAL: lib/libc/gen/charclass.h */ 8 | 9 | /* 10 | * POSIX character class support for fnmatch() and glob(). 11 | */ 12 | static struct cclass { 13 | const char *name; 14 | int (*isctype)(int); 15 | } cclasses[] = { 16 | { "alnum", isalnum }, 17 | { "alpha", isalpha }, 18 | { "blank", isblank }, 19 | { "cntrl", iscntrl }, 20 | { "digit", isdigit }, 21 | { "graph", isgraph }, 22 | { "lower", islower }, 23 | { "print", isprint }, 24 | { "punct", ispunct }, 25 | { "space", isspace }, 26 | { "upper", isupper }, 27 | { "xdigit", isxdigit }, 28 | { NULL, NULL } 29 | }; 30 | 31 | #define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1) 32 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/broken-pipe.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: broken-pipe.sh,v 1.4 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="broken pipe test" 5 | 6 | for p in 1 2; do 7 | trace "protocol $p" 8 | for i in 1 2 3 4; do 9 | ${SSH} -$p -F $OBJ/ssh_config_config nexthost echo $i 2> /dev/null | true 10 | r=$? 11 | if [ $r -ne 0 ]; then 12 | fail "broken pipe returns $r for protocol $p" 13 | fi 14 | done 15 | done 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/brokenkeys.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: brokenkeys.sh,v 1.1 2004/10/29 23:59:22 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="broken keys" 5 | 6 | KEYS="$OBJ/authorized_keys_${USER}" 7 | 8 | start_sshd 9 | 10 | mv ${KEYS} ${KEYS}.bak 11 | 12 | # Truncated key 13 | echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEABTM= bad key" > $KEYS 14 | cat ${KEYS}.bak >> ${KEYS} 15 | cat $OBJ/$t.pub >> $OBJ/authorized_keys_$USER 16 | 17 | ${SSH} -2 -F $OBJ/ssh_config somehost true 18 | if [ $? -ne 0 ]; then 19 | fail "ssh connect with protocol $p failed" 20 | fi 21 | 22 | mv ${KEYS}.bak ${KEYS} 23 | 24 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/connect-privsep.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: connect-privsep.sh,v 1.2 2011/06/30 22:44:43 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="proxy connect with privsep" 5 | 6 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy.orig 7 | echo 'UsePrivilegeSeparation yes' >> $OBJ/sshd_proxy 8 | 9 | for p in 1 2; do 10 | ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true 11 | if [ $? -ne 0 ]; then 12 | fail "ssh privsep+proxyconnect protocol $p failed" 13 | fi 14 | done 15 | 16 | cp $OBJ/sshd_proxy.orig $OBJ/sshd_proxy 17 | echo 'UsePrivilegeSeparation sandbox' >> $OBJ/sshd_proxy 18 | 19 | for p in 1 2; do 20 | ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true 21 | if [ $? -ne 0 ]; then 22 | # XXX replace this with fail once sandbox has stabilised 23 | warn "ssh privsep/sandbox+proxyconnect protocol $p failed" 24 | fi 25 | done 26 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/connect.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: connect.sh,v 1.4 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="simple connect" 5 | 6 | start_sshd 7 | 8 | for p in 1 2; do 9 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true 10 | if [ $? -ne 0 ]; then 11 | fail "ssh connect with protocol $p failed" 12 | fi 13 | done 14 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/dsa_ssh2.prv: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- 2 | Subject: ssh-keygen test 3 | Comment: "1024-bit dsa, Tue Jan 08 2002 22:00:23 +0100" 4 | P2/56wAAAgIAAAAmZGwtbW9kcHtzaWdue2RzYS1uaXN0LXNoYTF9LGRoe3BsYWlufX0AAA 5 | AEbm9uZQAAAcQAAAHAAAAAAAAABACwUfm3AxZTut3icBmwCcD48nY64HzuELlQ+vEqjIcR 6 | Lo49es/DQTeLNQ+kdKRCfouosGNv0WqxRtF0tUsWdXxS37oHGa4QPugBdHRd7YlZGZv8kg 7 | x7FsoepY7v7E683/97dv2zxL3AGagTEzWr7fl0yPexAaZoDvtQrrjX44BLmwAABACWQkvv 8 | MxnD8eFkS1konFfMJ1CkuRfTN34CBZ6dY7VTSGemy4QwtFdMKmoufD0eKgy3p5WOeWCYKt 9 | F4FhjHKZk/aaxFjjIbtkrnlvXg64QI11dSZyBN6/ViQkHPSkUDF+A6AAEhrNbQbAFSvao1 10 | kTvNtPCtL0AkUIduEMzGQfLCTAAAAKDeC043YVo9Zo0zAEeIA4uZh4LBCQAAA/9aj7Y5ik 11 | ehygJ4qTDSlVypsPuV+n59tMS0e2pfrSG87yf5r94AKBmJeho5OO6wYaXCxsVB7AFbSUD6 12 | 75AK8mHF4v1/+7SWKk5f8xlMCMSPZ9K0+j/W1d/q2qkhnnDZolOHDomLA+U00i5ya/jnTV 13 | zyDPWLFpWK8u3xGBPAYX324gAAAKDHFvooRnaXdZbeWGTTqmgHB1GU9A== 14 | ---- END SSH2 ENCRYPTED PRIVATE KEY ---- 15 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/dsa_ssh2.pub: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 PUBLIC KEY ---- 2 | Subject: ssh-keygen test 3 | Comment: "1024-bit dsa, Tue Jan 08 2002 22:00:23 +0100" 4 | AAAAB3NzaC1kc3MAAACBALBR+bcDFlO63eJwGbAJwPjydjrgfO4QuVD68SqMhxEujj16z8 5 | NBN4s1D6R0pEJ+i6iwY2/RarFG0XS1SxZ1fFLfugcZrhA+6AF0dF3tiVkZm/ySDHsWyh6l 6 | ju/sTrzf/3t2/bPEvcAZqBMTNavt+XTI97EBpmgO+1CuuNfjgEubAAAAFQDeC043YVo9Zo 7 | 0zAEeIA4uZh4LBCQAAAIEAlkJL7zMZw/HhZEtZKJxXzCdQpLkX0zd+AgWenWO1U0hnpsuE 8 | MLRXTCpqLnw9HioMt6eVjnlgmCrReBYYxymZP2msRY4yG7ZK55b14OuECNdXUmcgTev1Yk 9 | JBz0pFAxfgOgABIazW0GwBUr2qNZE7zbTwrS9AJFCHbhDMxkHywkwAAACAWo+2OYpHocoC 10 | eKkw0pVcqbD7lfp+fbTEtHtqX60hvO8n+a/eACgZiXoaOTjusGGlwsbFQewBW0lA+u+QCv 11 | JhxeL9f/u0lipOX/MZTAjEj2fStPo/1tXf6tqpIZ5w2aJThw6JiwPlNNIucmv4501c8gz1 12 | ixaVivLt8RgTwGF99uI= 13 | ---- END SSH2 PUBLIC KEY ---- 14 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/exit-status.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: exit-status.sh,v 1.6 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="remote exit status" 5 | 6 | for p in 1 2; do 7 | for s in 0 1 4 5 44; do 8 | trace "proto $p status $s" 9 | verbose "test $tid: proto $p status $s" 10 | ${SSH} -$p -F $OBJ/ssh_proxy otherhost exit $s 11 | r=$? 12 | if [ $r -ne $s ]; then 13 | fail "exit code mismatch for protocol $p: $r != $s" 14 | fi 15 | 16 | # same with early close of stdout/err 17 | ${SSH} -$p -F $OBJ/ssh_proxy -n otherhost \ 18 | exec sh -c \'"sleep 2; exec > /dev/null 2>&1; sleep 3; exit $s"\' 19 | r=$? 20 | if [ $r -ne $s ]; then 21 | fail "exit code (with sleep) mismatch for protocol $p: $r != $s" 22 | fi 23 | done 24 | done 25 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/host-expand.sh: -------------------------------------------------------------------------------- 1 | # Placed in the Public Domain. 2 | 3 | tid="expand %h and %n" 4 | 5 | echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy 6 | printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy 7 | 8 | cat >$OBJ/expect <<EOE 9 | somehost 10 | 127.0.0.1 11 | EOE 12 | 13 | for p in 1 2; do 14 | verbose "test $tid: proto $p" 15 | ${SSH} -F $OBJ/ssh_proxy -$p somehost true >$OBJ/actual 16 | diff $OBJ/expect $OBJ/actual || fail "$tid proto $p" 17 | done 18 | 19 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/kextype.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: kextype.sh,v 1.1 2010/09/22 12:26:05 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="login with different key exchange algorithms" 5 | 6 | TIME=/usr/bin/time 7 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak 8 | cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak 9 | 10 | if test "$TEST_SSH_ECC" = "yes"; then 11 | kextypes="ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521" 12 | fi 13 | if test "$TEST_SSH_SHA256" = "yes"; then 14 | kextypes="$kextypes diffie-hellman-group-exchange-sha256" 15 | fi 16 | kextypes="$kextypes diffie-hellman-group-exchange-sha1" 17 | kextypes="$kextypes diffie-hellman-group14-sha1" 18 | kextypes="$kextypes diffie-hellman-group1-sha1" 19 | 20 | tries="1 2 3 4" 21 | for k in $kextypes; do 22 | verbose "kex $k" 23 | for i in $tries; do 24 | ${SSH} -F $OBJ/ssh_proxy -o KexAlgorithms=$k x true 25 | if [ $? -ne 0 ]; then 26 | fail "ssh kex $k" 27 | fi 28 | done 29 | done 30 | 31 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/keygen-change.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: keygen-change.sh,v 1.2 2002/07/16 09:15:55 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="change passphrase for key" 5 | 6 | S1="secret1" 7 | S2="2secret" 8 | 9 | for t in rsa dsa rsa1; do 10 | # generate user key for agent 11 | trace "generating $t key" 12 | rm -f $OBJ/$t-key 13 | ${SSHKEYGEN} -q -N ${S1} -t $t -f $OBJ/$t-key 14 | if [ $? -eq 0 ]; then 15 | ${SSHKEYGEN} -p -P ${S1} -N ${S2} -f $OBJ/$t-key > /dev/null 16 | if [ $? -ne 0 ]; then 17 | fail "ssh-keygen -p failed for $t-key" 18 | fi 19 | else 20 | fail "ssh-keygen for $t-key failed" 21 | fi 22 | rm -f $OBJ/$t-key $OBJ/$t-key.pub 23 | done 24 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/keyscan.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: keyscan.sh,v 1.3 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="keyscan" 5 | 6 | # remove DSA hostkey 7 | rm -f ${OBJ}/host.dsa 8 | 9 | start_sshd 10 | 11 | for t in rsa1 rsa dsa; do 12 | trace "keyscan type $t" 13 | ${SSHKEYSCAN} -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \ 14 | > /dev/null 2>&1 15 | r=$? 16 | if [ $r -ne 0 ]; then 17 | fail "ssh-keyscan -t $t failed with: $r" 18 | fi 19 | done 20 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/localcommand.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: localcommand.sh,v 1.1 2007/10/29 06:57:13 dtucker Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="localcommand" 5 | 6 | echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy 7 | echo 'LocalCommand echo foo' >> $OBJ/ssh_proxy 8 | 9 | for p in 1 2; do 10 | verbose "test $tid: proto $p localcommand" 11 | a=`${SSH} -F $OBJ/ssh_proxy -$p somehost true` 12 | if [ "$a" != "foo" ] ; then 13 | fail "$tid proto $p" 14 | fi 15 | done 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/portnum.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: portnum.sh,v 1.1 2009/08/13 00:57:17 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="port number parsing" 5 | 6 | badport() { 7 | port=$1 8 | verbose "$tid: invalid port $port" 9 | if ${SSH} -F $OBJ/ssh_proxy -p $port somehost true 2>/dev/null ; then 10 | fail "$tid accepted invalid port $port" 11 | fi 12 | } 13 | goodport() { 14 | port=$1 15 | verbose "$tid: valid port $port" 16 | if ${SSH} -F $OBJ/ssh_proxy -p $port somehost true 2>/dev/null ; then 17 | : 18 | else 19 | fail "$tid rejected valid port $port" 20 | fi 21 | } 22 | 23 | badport 0 24 | badport 65536 25 | badport 131073 26 | badport 2000blah 27 | badport blah2000 28 | 29 | goodport 1 30 | goodport 22 31 | goodport 2222 32 | goodport 22222 33 | goodport 65535 34 | 35 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/proto-mismatch.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: proto-mismatch.sh,v 1.3 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="protocol version mismatch" 5 | 6 | mismatch () 7 | { 8 | server=$1 9 | client=$2 10 | banner=`echo ${client} | ${SSHD} -o "Protocol=${server}" -i -f ${OBJ}/sshd_proxy` 11 | r=$? 12 | trace "sshd prints ${banner}" 13 | if [ $r -ne 255 ]; then 14 | fail "sshd prints ${banner} and accepts connect with version ${client}" 15 | fi 16 | } 17 | 18 | mismatch 2 SSH-1.5-HALLO 19 | mismatch 1 SSH-2.0-HALLO 20 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/proto-version.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: proto-version.sh,v 1.3 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="sshd version with different protocol combinations" 5 | 6 | # we just start sshd in inetd mode and check the banner 7 | check_version () 8 | { 9 | version=$1 10 | expect=$2 11 | banner=`echon | ${SSHD} -o "Protocol=${version}" -i -f ${OBJ}/sshd_proxy` 12 | case ${banner} in 13 | SSH-1.99-*) 14 | proto=199 15 | ;; 16 | SSH-2.0-*) 17 | proto=20 18 | ;; 19 | SSH-1.5-*) 20 | proto=15 21 | ;; 22 | *) 23 | proto=0 24 | ;; 25 | esac 26 | if [ ${expect} -ne ${proto} ]; then 27 | fail "wrong protocol version ${banner} for ${version}" 28 | fi 29 | } 30 | 31 | check_version 2,1 199 32 | check_version 1,2 199 33 | check_version 2 20 34 | check_version 1 15 35 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/proxy-connect.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: proxy-connect.sh,v 1.5 2002/12/09 15:28:46 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="proxy connect" 5 | 6 | for p in 1 2; do 7 | ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true 8 | if [ $? -ne 0 ]; then 9 | fail "ssh proxyconnect protocol $p failed" 10 | fi 11 | SSH_CONNECTION=`${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 'echo $SSH_CONNECTION'` 12 | if [ $? -ne 0 ]; then 13 | fail "ssh proxyconnect protocol $p failed" 14 | fi 15 | if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then 16 | fail "bad SSH_CONNECTION" 17 | fi 18 | done 19 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/putty-ciphers.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: putty-ciphers.sh,v 1.3 2008/11/10 02:06:35 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="putty ciphers" 5 | 6 | DATA=/bin/ls 7 | COPY=${OBJ}/copy 8 | 9 | if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then 10 | echo "putty interop tests not enabled" 11 | exit 0 12 | fi 13 | 14 | for c in aes blowfish 3des arcfour aes128-ctr aes192-ctr aes256-ctr ; do 15 | verbose "$tid: cipher $c" 16 | cp ${OBJ}/.putty/sessions/localhost_proxy \ 17 | ${OBJ}/.putty/sessions/cipher_$c 18 | echo "Cipher=$c" >> ${OBJ}/.putty/sessions/cipher_$c 19 | 20 | rm -f ${COPY} 21 | env HOME=$PWD ${PLINK} -load cipher_$c -batch -i putty.rsa2 \ 22 | 127.0.0.1 cat ${DATA} > ${COPY} 23 | if [ $? -ne 0 ]; then 24 | fail "ssh cat $DATA failed" 25 | fi 26 | cmp ${DATA} ${COPY} || fail "corrupted copy" 27 | done 28 | rm -f ${COPY} 29 | 30 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/putty-kex.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: putty-kex.sh,v 1.2 2008/06/30 10:31:11 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="putty KEX" 5 | 6 | DATA=/bin/ls 7 | COPY=${OBJ}/copy 8 | 9 | if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then 10 | echo "putty interop tests not enabled" 11 | exit 0 12 | fi 13 | 14 | for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do 15 | verbose "$tid: kex $k" 16 | cp ${OBJ}/.putty/sessions/localhost_proxy \ 17 | ${OBJ}/.putty/sessions/kex_$k 18 | echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k 19 | 20 | env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 \ 21 | 127.0.0.1 true 22 | if [ $? -ne 0 ]; then 23 | fail "KEX $k failed" 24 | fi 25 | done 26 | 27 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/reconfigure.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: reconfigure.sh,v 1.2 2003/06/21 09:14:05 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="simple connect after reconfigure" 5 | 6 | # we need the full path to sshd for -HUP 7 | case $SSHD in 8 | /*) 9 | # full path is OK 10 | ;; 11 | *) 12 | # otherwise make fully qualified 13 | SSHD=$OBJ/$SSHD 14 | esac 15 | 16 | start_sshd 17 | 18 | PID=`$SUDO cat $PIDFILE` 19 | rm -f $PIDFILE 20 | $SUDO kill -HUP $PID 21 | 22 | trace "wait for sshd to restart" 23 | i=0; 24 | while [ ! -f $PIDFILE -a $i -lt 10 ]; do 25 | i=`expr $i + 1` 26 | sleep $i 27 | done 28 | 29 | test -f $PIDFILE || fatal "sshd did not restart" 30 | 31 | for p in 1 2; do 32 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true 33 | if [ $? -ne 0 ]; then 34 | fail "ssh connect with protocol $p failed after reconfigure" 35 | fi 36 | done 37 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/rekey.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: rekey.sh,v 1.1 2003/03/28 13:58:28 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="rekey during transfer data" 5 | 6 | DATA=${OBJ}/data 7 | COPY=${OBJ}/copy 8 | LOG=${OBJ}/log 9 | 10 | rm -f ${COPY} ${LOG} ${DATA} 11 | touch ${DATA} 12 | dd if=/bin/ls${EXEEXT} of=${DATA} bs=1k seek=511 count=1 > /dev/null 2>&1 13 | 14 | for s in 16 1k 128k 256k; do 15 | trace "rekeylimit ${s}" 16 | rm -f ${COPY} 17 | cat $DATA | \ 18 | ${SSH} -oCompression=no -oRekeyLimit=$s \ 19 | -v -F $OBJ/ssh_proxy somehost "cat > ${COPY}" \ 20 | 2> ${LOG} 21 | if [ $? -ne 0 ]; then 22 | fail "ssh failed" 23 | fi 24 | cmp $DATA ${COPY} || fail "corrupted copy" 25 | n=`grep 'NEWKEYS sent' ${LOG} | wc -l` 26 | n=`expr $n - 1` 27 | trace "$n rekeying(s)" 28 | if [ $n -lt 1 ]; then 29 | fail "no rekeying occured" 30 | fi 31 | done 32 | rm -f ${COPY} ${LOG} ${DATA} 33 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/rsa_openssh.prv: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICWgIBAAKBgQDsilwKcaKN6wSMNd1WgQ9+HRqQEkD0kCTVttrazGu0OhBU3Uko 3 | +dFD1Ip0CxdXmN25JQWxOYF7h/Ocu8P3jzv3RTX87xKR0YzlXTLX+SLtF/ySebS3 4 | xWPrlfRUDhh03hR5V+8xxvvy9widPYKw/oItwGSueOsEq1LTczCDv2dAjQIDAQAB 5 | An8nH5VzvHkMbSqJ6eOYDsVwomRvYbH5IEaYl1x6VATITNvAu9kUdQ4NsSpuMc+7 6 | Jj9gKZvmO1y2YCKc0P/iO+i/eV0L+yQh1Rw18jQZll+12T+LZrKRav03YNvMx0gN 7 | wqWY48Kt6hv2/N/ebQzKRe79+D0t2cTh92hT7xENFLIBAkEBGnoGKFjAUkJCwO1V 8 | mzpUqMHpRZVOrqP9hUmPjzNJ5oBPFGe4+h1hoSRFOAzaNuZt8ssbqaLCkzB8bfzj 9 | qhZqAQJBANZekuUpp8iBLeLSagw5FkcPwPzq6zfExbhvsZXb8Bo/4SflNs4JHXwI 10 | 7SD9Z8aJLvM4uQ/5M70lblDMQ40i3o0CQQDIJvBYBFL5tlOgakq/O7yi+wt0L5BZ 11 | 9H79w5rCSAA0IHRoK/qI1urHiHC3f3vbbLk5UStfrqEaND/mm0shyNIBAkBLsYdC 12 | /ctt5Bc0wUGK4Vl5bBmj9LtrrMJ4FpBpLwj/69BwCuKoK9XKZ0h73p6XHveCEGRg 13 | PIlFX4MtaoLrwgU9AkBV2k4dgIws+X8YX65EsyyFjnlDqX4x0nSOjQB1msIKfHBr 14 | dh5XLDBTTCxnKhMJ0Yx/opgOvf09XHBFwaQntR5i 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/rsa_openssh.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDsilwKcaKN6wSMNd1WgQ9+HRqQEkD0kCTVttrazGu0OhBU3Uko+dFD1Ip0CxdXmN25JQWxOYF7h/Ocu8P3jzv3RTX87xKR0YzlXTLX+SLtF/ySebS3xWPrlfRUDhh03hR5V+8xxvvy9widPYKw/oItwGSueOsEq1LTczCDv2dAjQ== 2 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/runtests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TEST_SSH_SSH=../ssh 4 | TEST_SSH_SSHD=../sshd 5 | TEST_SSH_SSHAGENT=../ssh-agent 6 | TEST_SSH_SSHADD=../ssh-add 7 | TEST_SSH_SSHKEYGEN=../ssh-keygen 8 | TEST_SSH_SSHKEYSCAN=../ssh-keyscan 9 | TEST_SSH_SFTP=../sftp 10 | TEST_SSH_SFTPSERVER=../sftp-server 11 | 12 | pmake 13 | 14 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/sftp.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: sftp.sh,v 1.3 2009/08/13 01:11:55 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="basic sftp put/get" 5 | 6 | DATA=/bin/ls${EXEEXT} 7 | COPY=${OBJ}/copy 8 | 9 | SFTPCMDFILE=${OBJ}/batch 10 | cat >$SFTPCMDFILE <<EOF 11 | version 12 | get $DATA ${COPY}.1 13 | put $DATA ${COPY}.2 14 | EOF 15 | 16 | BUFFERSIZE="5 1000 32000 64000" 17 | REQUESTS="1 2 10" 18 | 19 | for B in ${BUFFERSIZE}; do 20 | for R in ${REQUESTS}; do 21 | verbose "test $tid: buffer_size $B num_requests $R" 22 | rm -f ${COPY}.1 ${COPY}.2 23 | ${SFTP} -D ${SFTPSERVER} -B $B -R $R -b $SFTPCMDFILE \ 24 | > /dev/null 2>&1 25 | r=$? 26 | if [ $r -ne 0 ]; then 27 | fail "sftp failed with $r" 28 | else 29 | cmp $DATA ${COPY}.1 || fail "corrupted copy after get" 30 | cmp $DATA ${COPY}.2 || fail "corrupted copy after put" 31 | fi 32 | done 33 | done 34 | rm -f ${COPY}.1 ${COPY}.2 35 | rm -f $SFTPCMDFILE 36 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/ssh2putty.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $OpenBSD: ssh2putty.sh,v 1.2 2009/10/06 23:51:49 dtucker Exp $ 3 | 4 | if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then 5 | echo "Usage: ssh2putty hostname port ssh-private-key" 6 | exit 1 7 | fi 8 | 9 | HOST=$1 10 | PORT=$2 11 | KEYFILE=$3 12 | 13 | # XXX - support DSA keys too 14 | if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then 15 | : 16 | else 17 | echo "Unsupported private key format" 18 | exit 1 19 | fi 20 | 21 | public_exponent=` 22 | openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | 23 | sed 's/.*(//;s/).*//' 24 | ` 25 | test $? -ne 0 && exit 1 26 | 27 | modulus=` 28 | openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= | 29 | sed 's/^Modulus=/0x/' | tr A-Z a-z 30 | ` 31 | test $? -ne 0 && exit 1 32 | 33 | echo "rsa2@$PORT:$HOST $public_exponent,$modulus" 34 | 35 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/sshd-log-wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $OpenBSD: sshd-log-wrapper.sh,v 1.2 2005/02/27 11:40:30 dtucker Exp $ 3 | # Placed in the Public Domain. 4 | # 5 | # simple wrapper for sshd proxy mode to catch stderr output 6 | # sh sshd-log-wrapper.sh /path/to/sshd /path/to/logfile 7 | 8 | sshd=$1 9 | log=$2 10 | shift 11 | shift 12 | 13 | exec $sshd $@ -e 2>>$log 14 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/stderr-data.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: stderr-data.sh,v 1.2 2002/03/27 22:39:52 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="stderr data transfer" 5 | 6 | DATA=/bin/ls${EXEEXT} 7 | COPY=${OBJ}/copy 8 | rm -f ${COPY} 9 | 10 | for n in '' -n; do 11 | for p in 1 2; do 12 | verbose "test $tid: proto $p ($n)" 13 | ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \ 14 | exec sh -c \'"exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \ 15 | 2> ${COPY} 16 | r=$? 17 | if [ $r -ne 0 ]; then 18 | fail "ssh failed with exit code $r" 19 | fi 20 | cmp ${DATA} ${COPY} || fail "stderr corrupt" 21 | rm -f ${COPY} 22 | 23 | ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \ 24 | exec sh -c \'"echo a; exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \ 25 | > /dev/null 2> ${COPY} 26 | r=$? 27 | if [ $r -ne 0 ]; then 28 | fail "ssh failed with exit code $r" 29 | fi 30 | cmp ${DATA} ${COPY} || fail "stderr corrupt" 31 | rm -f ${COPY} 32 | done 33 | done 34 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/t4.ok: -------------------------------------------------------------------------------- 1 | 3b:dd:44:e9:49:18:84:95:f1:e7:33:6b:9d:93:b1:36 2 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/t5.ok: -------------------------------------------------------------------------------- 1 | xokes-lylis-byleh-zebib-kalus-bihas-tevah-haroz-suhar-foved-noxex 2 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/transfer.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: transfer.sh,v 1.1 2002/03/27 00:03:37 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="transfer data" 5 | 6 | DATA=/bin/ls${EXEEXT} 7 | COPY=${OBJ}/copy 8 | 9 | for p in 1 2; do 10 | verbose "$tid: proto $p" 11 | rm -f ${COPY} 12 | ${SSH} -n -q -$p -F $OBJ/ssh_proxy somehost cat ${DATA} > ${COPY} 13 | if [ $? -ne 0 ]; then 14 | fail "ssh cat $DATA failed" 15 | fi 16 | cmp ${DATA} ${COPY} || fail "corrupted copy" 17 | 18 | for s in 10 100 1k 32k 64k 128k 256k; do 19 | trace "proto $p dd-size ${s}" 20 | rm -f ${COPY} 21 | dd if=$DATA obs=${s} 2> /dev/null | \ 22 | ${SSH} -q -$p -F $OBJ/ssh_proxy somehost "cat > ${COPY}" 23 | if [ $? -ne 0 ]; then 24 | fail "ssh cat $DATA failed" 25 | fi 26 | cmp $DATA ${COPY} || fail "corrupted copy" 27 | done 28 | done 29 | rm -f ${COPY} 30 | -------------------------------------------------------------------------------- /openssh-5.9p1/regress/yes-head.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: yes-head.sh,v 1.4 2002/03/15 13:08:56 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="yes pipe head" 5 | 6 | for p in 1 2; do 7 | lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | _POSIX2_VERSION=199209 head -2000"' | (sleep 3 ; wc -l)` 8 | if [ $? -ne 0 ]; then 9 | fail "yes|head test failed" 10 | lines = 0; 11 | fi 12 | if [ $lines -ne 2000 ]; then 13 | fail "yes|head returns $lines lines instead of 2000" 14 | fi 15 | done 16 | -------------------------------------------------------------------------------- /openssh-5.9p1/ssh-pkcs11-helper.0: -------------------------------------------------------------------------------- 1 | SSH-PKCS11-HELPER(8) OpenBSD System Manager's Manual SSH-PKCS11-HELPER(8) 2 | 3 | NAME 4 | ssh-pkcs11-helper - ssh-agent helper program for PKCS#11 support 5 | 6 | SYNOPSIS 7 | ssh-pkcs11-helper 8 | 9 | DESCRIPTION 10 | ssh-pkcs11-helper is used by ssh-agent(1) to access keys provided by a 11 | PKCS#11 token. 12 | 13 | ssh-pkcs11-helper is not intended to be invoked by the user, but from 14 | ssh-agent(1). 15 | 16 | SEE ALSO 17 | ssh(1), ssh-add(1), ssh-agent(1) 18 | 19 | HISTORY 20 | ssh-pkcs11-helper first appeared in OpenBSD 4.7. 21 | 22 | AUTHORS 23 | Markus Friedl <markus@openbsd.org> 24 | 25 | OpenBSD 5.0 February 10, 2010 OpenBSD 5.0 26 | -------------------------------------------------------------------------------- /openssh-5.9p1/uidswap.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: uidswap.h,v 1.13 2006/08/03 03:34:42 deraadt Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 | * All rights reserved 7 | * 8 | * As far as I am concerned, the code I have written for this software 9 | * can be used freely for any purpose. Any derived versions of this 10 | * software must be clearly marked as such, and if the derived work is 11 | * incompatible with the protocol description in the RFC file, it must be 12 | * called by a name other than "ssh" or "Secure Shell". 13 | */ 14 | 15 | void temporarily_use_uid(struct passwd *); 16 | void restore_uid(void); 17 | void permanently_set_uid(struct passwd *); 18 | void permanently_drop_suid(uid_t); 19 | -------------------------------------------------------------------------------- /openssh-5.9p1/version.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: version.h,v 1.62 2011/08/02 23:13:01 djm Exp $ */ 2 | 3 | #define SSH_VERSION "OpenSSH_5.9" 4 | 5 | #define SSH_PORTABLE "p1" 6 | #define SSH_RELEASE SSH_VERSION SSH_PORTABLE 7 | -------------------------------------------------------------------------------- /pyclient/README: -------------------------------------------------------------------------------- 1 | Psiphon client in Python 2 | ======================= 3 | 4 | You will need to build OpenSSH 5.9p1 that supports obfuscation: 5 | 6 | cd ../Server/3rdParty/openssh-5.9p1/ 7 | ./configure 8 | make 9 | 10 | and copy ssh binary from psiphon-circumvention-system/Server/3rdParty/openssh-5.9p1/ to psiphon-circumvention-system/pyclient/ 11 | 12 | For more details visit related Google Group discussion at 13 | https://groups.google.com/forum/#!searchin/psiphon3-developers/python$20/psiphon3-developers/cb8CW7Y98nI/BRx7-cIQ7C8J 14 | -------------------------------------------------------------------------------- /pyclient/SocksiPy/BUGS: -------------------------------------------------------------------------------- 1 | SocksiPy version 1.00 2 | A Python SOCKS module. 3 | (C) 2006 Dan-Haim. All rights reserved. 4 | See LICENSE file for details. 5 | 6 | 7 | KNOWN BUGS AND ISSUES 8 | ---------------------- 9 | 10 | There are no currently known bugs in this module. 11 | There are some limits though: 12 | 13 | 1) Only outgoing connections are supported - This module currently only supports 14 | outgoing TCP connections, though some servers may support incoming connections 15 | as well. UDP is not supported either. 16 | 17 | 2) GSSAPI Socks5 authenticaion is not supported. 18 | 19 | 20 | If you find any new bugs, please contact the author at: 21 | 22 | negativeiq@users.sourceforge.net 23 | 24 | 25 | Thank you! 26 | -------------------------------------------------------------------------------- /pyclient/update.py: -------------------------------------------------------------------------------- 1 | import os, json 2 | 3 | # Delete 'server_list' if exists 4 | if os.path.exists("server_list"): 5 | os.remove("server_list") 6 | 7 | # Download 'server_list' and convert server_list to psi_client.dat 8 | url ="https://psiphon3.com/server_list" 9 | os.system('wget ' + url) 10 | 11 | dat = {} 12 | dat["propagation_channel_id"] = "FFFFFFFFFFFFFFFF" 13 | dat["sponsor_id"] = "FFFFFFFFFFFFFFFF" 14 | dat["servers"] = json.load(open('server_list'))['data'].split() 15 | json.dump(dat, open('psi_client.dat', 'w')) 16 | 17 | --------------------------------------------------------------------------------