├── .gitignore ├── README.md ├── jni ├── Android.mk ├── Application.mk ├── external │ ├── openssh │ │ ├── Android.mk │ │ ├── CREDITS │ │ ├── ChangeLog │ │ ├── INSTALL │ │ ├── LICENCE │ │ ├── Makefile.in │ │ ├── OVERVIEW │ │ ├── PROTOCOL │ │ ├── PROTOCOL.agent │ │ ├── PROTOCOL.certkeys │ │ ├── PROTOCOL.mux │ │ ├── README │ │ ├── README.dns │ │ ├── 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 │ │ ├── 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 │ │ ├── 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 │ │ ├── sshd_config.android │ │ ├── sshlogin.c │ │ ├── sshlogin.h │ │ ├── sshpty.c │ │ ├── sshpty.h │ │ ├── sshtty.c │ │ ├── start-ssh │ │ ├── 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 │ ├── openssl │ │ ├── Android.mk │ │ ├── Apps.mk │ │ ├── CleanSpec.mk │ │ ├── Crypto.mk │ │ ├── MODULE_LICENSE_BSD_LIKE │ │ ├── NOTICE │ │ ├── README.android │ │ ├── Ssl.mk │ │ ├── android-config.mk │ │ ├── android.testssl │ │ │ ├── CAss.cnf │ │ │ ├── Uss.cnf │ │ │ ├── server2.pem │ │ │ ├── testssl │ │ │ └── testssl.sh │ │ ├── apps │ │ │ ├── CA.pl │ │ │ ├── CA.pl.in │ │ │ ├── CA.sh │ │ │ ├── app_rand.c │ │ │ ├── apps.c │ │ │ ├── apps.h │ │ │ ├── asn1pars.c │ │ │ ├── ca-cert.srl │ │ │ ├── ca-key.pem │ │ │ ├── ca-req.pem │ │ │ ├── ca.c │ │ │ ├── cert.pem │ │ │ ├── ciphers.c │ │ │ ├── client.pem │ │ │ ├── cms.c │ │ │ ├── crl.c │ │ │ ├── crl2p7.c │ │ │ ├── dgst.c │ │ │ ├── dh.c │ │ │ ├── dh1024.pem │ │ │ ├── dh2048.pem │ │ │ ├── dh4096.pem │ │ │ ├── dh512.pem │ │ │ ├── dhparam.c │ │ │ ├── dsa-ca.pem │ │ │ ├── dsa-pca.pem │ │ │ ├── dsa.c │ │ │ ├── dsa1024.pem │ │ │ ├── dsa512.pem │ │ │ ├── dsap.pem │ │ │ ├── dsaparam.c │ │ │ ├── ec.c │ │ │ ├── ecparam.c │ │ │ ├── enc.c │ │ │ ├── engine.c │ │ │ ├── errstr.c │ │ │ ├── gendh.c │ │ │ ├── gendsa.c │ │ │ ├── genpkey.c │ │ │ ├── genrsa.c │ │ │ ├── md4.c │ │ │ ├── nseq.c │ │ │ ├── ocsp.c │ │ │ ├── oid.cnf │ │ │ ├── openssl.c │ │ │ ├── openssl.cnf │ │ │ ├── passwd.c │ │ │ ├── pca-cert.srl │ │ │ ├── pca-key.pem │ │ │ ├── pca-req.pem │ │ │ ├── pkcs12.c │ │ │ ├── pkcs7.c │ │ │ ├── pkcs8.c │ │ │ ├── pkey.c │ │ │ ├── pkeyparam.c │ │ │ ├── pkeyutl.c │ │ │ ├── prime.c │ │ │ ├── privkey.pem │ │ │ ├── progs.h │ │ │ ├── progs.pl │ │ │ ├── rand.c │ │ │ ├── req.c │ │ │ ├── req.pem │ │ │ ├── rsa.c │ │ │ ├── rsa8192.pem │ │ │ ├── rsautl.c │ │ │ ├── s1024key.pem │ │ │ ├── s1024req.pem │ │ │ ├── s512-key.pem │ │ │ ├── s512-req.pem │ │ │ ├── s_apps.h │ │ │ ├── s_cb.c │ │ │ ├── s_client.c │ │ │ ├── s_server.c │ │ │ ├── s_socket.c │ │ │ ├── s_time.c │ │ │ ├── server.pem │ │ │ ├── server.srl │ │ │ ├── server2.pem │ │ │ ├── sess_id.c │ │ │ ├── smime.c │ │ │ ├── speed.c │ │ │ ├── spkac.c │ │ │ ├── srp.c │ │ │ ├── testCA.pem │ │ │ ├── testdsa.h │ │ │ ├── testrsa.h │ │ │ ├── timeouts.h │ │ │ ├── verify.c │ │ │ ├── version.c │ │ │ ├── winrand.c │ │ │ └── x509.c │ │ ├── crypto │ │ │ ├── LPdir_nyi.c │ │ │ ├── LPdir_unix.c │ │ │ ├── LPdir_win.c │ │ │ ├── LPdir_win32.c │ │ │ ├── LPdir_wince.c │ │ │ ├── aes │ │ │ │ ├── README │ │ │ │ ├── aes.h │ │ │ │ ├── aes_cbc.c │ │ │ │ ├── aes_cfb.c │ │ │ │ ├── aes_core.c │ │ │ │ ├── aes_ctr.c │ │ │ │ ├── aes_ecb.c │ │ │ │ ├── aes_ige.c │ │ │ │ ├── aes_locl.h │ │ │ │ ├── aes_misc.c │ │ │ │ ├── aes_ofb.c │ │ │ │ ├── aes_wrap.c │ │ │ │ ├── aes_x86core.c │ │ │ │ └── asm │ │ │ │ │ ├── aes-586.S │ │ │ │ │ ├── aes-586.pl │ │ │ │ │ ├── aes-armv4.S │ │ │ │ │ ├── aes-armv4.pl │ │ │ │ │ ├── aes-ia64.S │ │ │ │ │ ├── aes-mips.S │ │ │ │ │ ├── aes-mips.pl │ │ │ │ │ ├── aes-parisc.pl │ │ │ │ │ ├── aes-ppc.pl │ │ │ │ │ ├── aes-s390x.pl │ │ │ │ │ ├── aes-sparcv9.pl │ │ │ │ │ ├── aes-x86_64.pl │ │ │ │ │ ├── aesni-sha1-x86_64.pl │ │ │ │ │ ├── aesni-x86.S │ │ │ │ │ ├── aesni-x86.pl │ │ │ │ │ ├── aesni-x86_64.pl │ │ │ │ │ ├── bsaes-x86_64.pl │ │ │ │ │ ├── vpaes-x86.S │ │ │ │ │ ├── vpaes-x86.pl │ │ │ │ │ └── vpaes-x86_64.pl │ │ │ ├── alphacpuid.pl │ │ │ ├── arm_arch.h │ │ │ ├── armv4cpuid.S │ │ │ ├── asn1 │ │ │ │ ├── a_bitstr.c │ │ │ │ ├── a_bool.c │ │ │ │ ├── a_bytes.c │ │ │ │ ├── a_d2i_fp.c │ │ │ │ ├── a_digest.c │ │ │ │ ├── a_dup.c │ │ │ │ ├── a_enum.c │ │ │ │ ├── a_gentm.c │ │ │ │ ├── a_i2d_fp.c │ │ │ │ ├── a_int.c │ │ │ │ ├── a_mbstr.c │ │ │ │ ├── a_object.c │ │ │ │ ├── a_octet.c │ │ │ │ ├── a_print.c │ │ │ │ ├── a_set.c │ │ │ │ ├── a_sign.c │ │ │ │ ├── a_strex.c │ │ │ │ ├── a_strnid.c │ │ │ │ ├── a_time.c │ │ │ │ ├── a_type.c │ │ │ │ ├── a_utctm.c │ │ │ │ ├── a_utf8.c │ │ │ │ ├── a_verify.c │ │ │ │ ├── ameth_lib.c │ │ │ │ ├── asn1.h │ │ │ │ ├── asn1_err.c │ │ │ │ ├── asn1_gen.c │ │ │ │ ├── asn1_lib.c │ │ │ │ ├── asn1_locl.h │ │ │ │ ├── asn1_mac.h │ │ │ │ ├── asn1_par.c │ │ │ │ ├── asn1t.h │ │ │ │ ├── asn_mime.c │ │ │ │ ├── asn_moid.c │ │ │ │ ├── asn_pack.c │ │ │ │ ├── bio_asn1.c │ │ │ │ ├── bio_ndef.c │ │ │ │ ├── charmap.h │ │ │ │ ├── charmap.pl │ │ │ │ ├── d2i_pr.c │ │ │ │ ├── d2i_pu.c │ │ │ │ ├── evp_asn1.c │ │ │ │ ├── f_enum.c │ │ │ │ ├── f_int.c │ │ │ │ ├── f_string.c │ │ │ │ ├── i2d_pr.c │ │ │ │ ├── i2d_pu.c │ │ │ │ ├── n_pkey.c │ │ │ │ ├── nsseq.c │ │ │ │ ├── p5_pbe.c │ │ │ │ ├── p5_pbev2.c │ │ │ │ ├── p8_pkey.c │ │ │ │ ├── t_bitst.c │ │ │ │ ├── t_crl.c │ │ │ │ ├── t_pkey.c │ │ │ │ ├── t_req.c │ │ │ │ ├── t_spki.c │ │ │ │ ├── t_x509.c │ │ │ │ ├── t_x509a.c │ │ │ │ ├── tasn_dec.c │ │ │ │ ├── tasn_enc.c │ │ │ │ ├── tasn_fre.c │ │ │ │ ├── tasn_new.c │ │ │ │ ├── tasn_prn.c │ │ │ │ ├── tasn_typ.c │ │ │ │ ├── tasn_utl.c │ │ │ │ ├── x_algor.c │ │ │ │ ├── x_attrib.c │ │ │ │ ├── x_bignum.c │ │ │ │ ├── x_crl.c │ │ │ │ ├── x_exten.c │ │ │ │ ├── x_info.c │ │ │ │ ├── x_long.c │ │ │ │ ├── x_name.c │ │ │ │ ├── x_nx509.c │ │ │ │ ├── x_pkey.c │ │ │ │ ├── x_pubkey.c │ │ │ │ ├── x_req.c │ │ │ │ ├── x_sig.c │ │ │ │ ├── x_spki.c │ │ │ │ ├── x_val.c │ │ │ │ ├── x_x509.c │ │ │ │ └── x_x509a.c │ │ │ ├── bf │ │ │ │ ├── COPYRIGHT │ │ │ │ ├── asm │ │ │ │ │ ├── bf-586.S │ │ │ │ │ ├── bf-586.pl │ │ │ │ │ └── bf-686.pl │ │ │ │ ├── bf_cfb64.c │ │ │ │ ├── bf_ecb.c │ │ │ │ ├── bf_enc.c │ │ │ │ ├── bf_locl.h │ │ │ │ ├── bf_ofb64.c │ │ │ │ ├── bf_pi.h │ │ │ │ ├── bf_skey.c │ │ │ │ └── blowfish.h │ │ │ ├── bio │ │ │ │ ├── b_dump.c │ │ │ │ ├── b_print.c │ │ │ │ ├── b_sock.c │ │ │ │ ├── bf_buff.c │ │ │ │ ├── bf_lbuf.c │ │ │ │ ├── bf_nbio.c │ │ │ │ ├── bf_null.c │ │ │ │ ├── bio.h │ │ │ │ ├── bio_cb.c │ │ │ │ ├── bio_err.c │ │ │ │ ├── bio_lcl.h │ │ │ │ ├── bio_lib.c │ │ │ │ ├── bss_acpt.c │ │ │ │ ├── bss_bio.c │ │ │ │ ├── bss_conn.c │ │ │ │ ├── bss_dgram.c │ │ │ │ ├── bss_fd.c │ │ │ │ ├── bss_file.c │ │ │ │ ├── bss_log.c │ │ │ │ ├── bss_mem.c │ │ │ │ ├── bss_null.c │ │ │ │ └── bss_sock.c │ │ │ ├── bn │ │ │ │ ├── asm │ │ │ │ │ ├── README │ │ │ │ │ ├── alpha-mont.pl │ │ │ │ │ ├── armv4-gf2m.S │ │ │ │ │ ├── armv4-gf2m.pl │ │ │ │ │ ├── armv4-mont.S │ │ │ │ │ ├── armv4-mont.pl │ │ │ │ │ ├── bn-586.S │ │ │ │ │ ├── bn-586.pl │ │ │ │ │ ├── bn-mips.S │ │ │ │ │ ├── co-586.S │ │ │ │ │ ├── co-586.pl │ │ │ │ │ ├── ia64-mont.pl │ │ │ │ │ ├── ia64.S │ │ │ │ │ ├── mips-mont.S │ │ │ │ │ ├── mips-mont.pl │ │ │ │ │ ├── mips.pl │ │ │ │ │ ├── mips3-mont.pl │ │ │ │ │ ├── mips3.S │ │ │ │ │ ├── modexp512-x86_64.pl │ │ │ │ │ ├── pa-risc2.S │ │ │ │ │ ├── pa-risc2W.S │ │ │ │ │ ├── parisc-mont.pl │ │ │ │ │ ├── ppc-mont.pl │ │ │ │ │ ├── ppc.pl │ │ │ │ │ ├── ppc64-mont.pl │ │ │ │ │ ├── s390x-gf2m.pl │ │ │ │ │ ├── s390x-mont.pl │ │ │ │ │ ├── s390x.S │ │ │ │ │ ├── sparcv8.S │ │ │ │ │ ├── sparcv8plus.S │ │ │ │ │ ├── sparcv9-mont.pl │ │ │ │ │ ├── sparcv9a-mont.pl │ │ │ │ │ ├── via-mont.pl │ │ │ │ │ ├── x86-gf2m.S │ │ │ │ │ ├── x86-gf2m.pl │ │ │ │ │ ├── x86-mont.S │ │ │ │ │ ├── x86-mont.pl │ │ │ │ │ ├── x86.pl │ │ │ │ │ ├── x86 │ │ │ │ │ │ ├── add.pl │ │ │ │ │ │ ├── comba.pl │ │ │ │ │ │ ├── div.pl │ │ │ │ │ │ ├── f │ │ │ │ │ │ ├── mul.pl │ │ │ │ │ │ ├── mul_add.pl │ │ │ │ │ │ ├── sqr.pl │ │ │ │ │ │ └── sub.pl │ │ │ │ │ ├── x86_64-gcc.c │ │ │ │ │ ├── x86_64-gf2m.pl │ │ │ │ │ ├── x86_64-mont.pl │ │ │ │ │ └── x86_64-mont5.pl │ │ │ │ ├── bn.h │ │ │ │ ├── bn.mul │ │ │ │ ├── bn_add.c │ │ │ │ ├── bn_asm.c │ │ │ │ ├── bn_blind.c │ │ │ │ ├── bn_const.c │ │ │ │ ├── bn_ctx.c │ │ │ │ ├── bn_depr.c │ │ │ │ ├── bn_div.c │ │ │ │ ├── bn_err.c │ │ │ │ ├── bn_exp.c │ │ │ │ ├── bn_exp2.c │ │ │ │ ├── bn_gcd.c │ │ │ │ ├── bn_gf2m.c │ │ │ │ ├── bn_kron.c │ │ │ │ ├── bn_lcl.h │ │ │ │ ├── bn_lib.c │ │ │ │ ├── bn_mod.c │ │ │ │ ├── bn_mont.c │ │ │ │ ├── bn_mpi.c │ │ │ │ ├── bn_mul.c │ │ │ │ ├── bn_nist.c │ │ │ │ ├── bn_prime.c │ │ │ │ ├── bn_prime.h │ │ │ │ ├── bn_prime.pl │ │ │ │ ├── bn_print.c │ │ │ │ ├── bn_rand.c │ │ │ │ ├── bn_recp.c │ │ │ │ ├── bn_shift.c │ │ │ │ ├── bn_sqr.c │ │ │ │ ├── bn_sqrt.c │ │ │ │ ├── bn_word.c │ │ │ │ ├── bnspeed.c │ │ │ │ ├── bntest.c │ │ │ │ ├── divtest.c │ │ │ │ ├── exp.c │ │ │ │ ├── expspeed.c │ │ │ │ ├── exptest.c │ │ │ │ └── todo │ │ │ ├── buffer │ │ │ │ ├── buf_err.c │ │ │ │ ├── buf_str.c │ │ │ │ ├── buffer.c │ │ │ │ └── buffer.h │ │ │ ├── cmac │ │ │ │ ├── cm_ameth.c │ │ │ │ ├── cm_pmeth.c │ │ │ │ ├── cmac.c │ │ │ │ └── cmac.h │ │ │ ├── comp │ │ │ │ ├── c_rle.c │ │ │ │ ├── c_zlib.c │ │ │ │ ├── comp.h │ │ │ │ ├── comp_err.c │ │ │ │ └── comp_lib.c │ │ │ ├── conf │ │ │ │ ├── README │ │ │ │ ├── cnf_save.c │ │ │ │ ├── conf.h │ │ │ │ ├── conf_api.c │ │ │ │ ├── conf_api.h │ │ │ │ ├── conf_def.c │ │ │ │ ├── conf_def.h │ │ │ │ ├── conf_err.c │ │ │ │ ├── conf_lib.c │ │ │ │ ├── conf_mall.c │ │ │ │ ├── conf_mod.c │ │ │ │ ├── conf_sap.c │ │ │ │ ├── keysets.pl │ │ │ │ ├── ssleay.cnf │ │ │ │ └── test.c │ │ │ ├── cpt_err.c │ │ │ ├── cryptlib.c │ │ │ ├── cryptlib.h │ │ │ ├── crypto.h │ │ │ ├── cversion.c │ │ │ ├── des │ │ │ │ ├── COPYRIGHT │ │ │ │ ├── DES.pm │ │ │ │ ├── DES.xs │ │ │ │ ├── FILES0 │ │ │ │ ├── INSTALL │ │ │ │ ├── Imakefile │ │ │ │ ├── KERBEROS │ │ │ │ ├── README │ │ │ │ ├── VERSION │ │ │ │ ├── asm │ │ │ │ │ ├── crypt586.S │ │ │ │ │ ├── crypt586.pl │ │ │ │ │ ├── des-586.S │ │ │ │ │ ├── des-586.pl │ │ │ │ │ ├── des_enc.m4 │ │ │ │ │ ├── desboth.pl │ │ │ │ │ └── readme │ │ │ │ ├── cbc3_enc.c │ │ │ │ ├── cbc_cksm.c │ │ │ │ ├── cbc_enc.c │ │ │ │ ├── cfb64ede.c │ │ │ │ ├── cfb64enc.c │ │ │ │ ├── cfb_enc.c │ │ │ │ ├── des.c │ │ │ │ ├── des.h │ │ │ │ ├── des.pod │ │ │ │ ├── des3s.cpp │ │ │ │ ├── des_enc.c │ │ │ │ ├── des_locl.h │ │ │ │ ├── des_old.c │ │ │ │ ├── des_old.h │ │ │ │ ├── des_old2.c │ │ │ │ ├── des_opts.c │ │ │ │ ├── des_ver.h │ │ │ │ ├── dess.cpp │ │ │ │ ├── destest.c │ │ │ │ ├── ecb3_enc.c │ │ │ │ ├── ecb_enc.c │ │ │ │ ├── ede_cbcm_enc.c │ │ │ │ ├── enc_read.c │ │ │ │ ├── enc_writ.c │ │ │ │ ├── fcrypt.c │ │ │ │ ├── fcrypt_b.c │ │ │ │ ├── makefile.bc │ │ │ │ ├── ncbc_enc.c │ │ │ │ ├── ofb64ede.c │ │ │ │ ├── ofb64enc.c │ │ │ │ ├── ofb_enc.c │ │ │ │ ├── options.txt │ │ │ │ ├── pcbc_enc.c │ │ │ │ ├── qud_cksm.c │ │ │ │ ├── rand_key.c │ │ │ │ ├── read2pwd.c │ │ │ │ ├── read_pwd.c │ │ │ │ ├── rpc_des.h │ │ │ │ ├── rpc_enc.c │ │ │ │ ├── rpw.c │ │ │ │ ├── set_key.c │ │ │ │ ├── speed.c │ │ │ │ ├── spr.h │ │ │ │ ├── str2key.c │ │ │ │ ├── t │ │ │ │ │ └── test │ │ │ │ ├── times │ │ │ │ │ ├── 486-50.sol │ │ │ │ │ ├── 586-100.lnx │ │ │ │ │ ├── 686-200.fre │ │ │ │ │ ├── aix.cc │ │ │ │ │ ├── alpha.cc │ │ │ │ │ ├── hpux.cc │ │ │ │ │ ├── sparc.gcc │ │ │ │ │ └── usparc.cc │ │ │ │ ├── typemap │ │ │ │ └── xcbc_enc.c │ │ │ ├── dh │ │ │ │ ├── dh.h │ │ │ │ ├── dh1024.pem │ │ │ │ ├── dh192.pem │ │ │ │ ├── dh2048.pem │ │ │ │ ├── dh4096.pem │ │ │ │ ├── dh512.pem │ │ │ │ ├── dh_ameth.c │ │ │ │ ├── dh_asn1.c │ │ │ │ ├── dh_check.c │ │ │ │ ├── dh_depr.c │ │ │ │ ├── dh_err.c │ │ │ │ ├── dh_gen.c │ │ │ │ ├── dh_key.c │ │ │ │ ├── dh_lib.c │ │ │ │ ├── dh_pmeth.c │ │ │ │ ├── dhtest.c │ │ │ │ ├── example │ │ │ │ ├── generate │ │ │ │ ├── p1024.c │ │ │ │ ├── p192.c │ │ │ │ └── p512.c │ │ │ ├── dsa │ │ │ │ ├── README │ │ │ │ ├── dsa.h │ │ │ │ ├── dsa_ameth.c │ │ │ │ ├── dsa_asn1.c │ │ │ │ ├── dsa_depr.c │ │ │ │ ├── dsa_err.c │ │ │ │ ├── dsa_gen.c │ │ │ │ ├── dsa_key.c │ │ │ │ ├── dsa_lib.c │ │ │ │ ├── dsa_locl.h │ │ │ │ ├── dsa_ossl.c │ │ │ │ ├── dsa_pmeth.c │ │ │ │ ├── dsa_prn.c │ │ │ │ ├── dsa_sign.c │ │ │ │ ├── dsa_vrf.c │ │ │ │ ├── dsagen.c │ │ │ │ ├── dsatest.c │ │ │ │ └── fips186a.txt │ │ │ ├── dso │ │ │ │ ├── README │ │ │ │ ├── dso.h │ │ │ │ ├── dso_dl.c │ │ │ │ ├── dso_dlfcn.c │ │ │ │ ├── dso_err.c │ │ │ │ ├── dso_lib.c │ │ │ │ ├── dso_null.c │ │ │ │ └── dso_openssl.c │ │ │ ├── ebcdic.c │ │ │ ├── ebcdic.h │ │ │ ├── ec │ │ │ │ ├── ec.h │ │ │ │ ├── ec2_mult.c │ │ │ │ ├── ec2_oct.c │ │ │ │ ├── ec2_smpl.c │ │ │ │ ├── ec_ameth.c │ │ │ │ ├── ec_asn1.c │ │ │ │ ├── ec_check.c │ │ │ │ ├── ec_curve.c │ │ │ │ ├── ec_cvt.c │ │ │ │ ├── ec_err.c │ │ │ │ ├── ec_key.c │ │ │ │ ├── ec_lcl.h │ │ │ │ ├── ec_lib.c │ │ │ │ ├── ec_mult.c │ │ │ │ ├── ec_oct.c │ │ │ │ ├── ec_pmeth.c │ │ │ │ ├── ec_print.c │ │ │ │ ├── eck_prn.c │ │ │ │ ├── ecp_mont.c │ │ │ │ ├── ecp_nist.c │ │ │ │ ├── ecp_oct.c │ │ │ │ ├── ecp_smpl.c │ │ │ │ └── ectest.c │ │ │ ├── ecdh │ │ │ │ ├── ecdh.h │ │ │ │ ├── ecdhtest.c │ │ │ │ ├── ech_err.c │ │ │ │ ├── ech_key.c │ │ │ │ ├── ech_lib.c │ │ │ │ ├── ech_locl.h │ │ │ │ └── ech_ossl.c │ │ │ ├── ecdsa │ │ │ │ ├── ecdsa.h │ │ │ │ ├── ecdsatest.c │ │ │ │ ├── ecs_asn1.c │ │ │ │ ├── ecs_err.c │ │ │ │ ├── ecs_lib.c │ │ │ │ ├── ecs_locl.h │ │ │ │ ├── ecs_ossl.c │ │ │ │ ├── ecs_sign.c │ │ │ │ └── ecs_vrf.c │ │ │ ├── engine │ │ │ │ ├── README │ │ │ │ ├── eng_all.c │ │ │ │ ├── eng_cnf.c │ │ │ │ ├── eng_cryptodev.c │ │ │ │ ├── eng_ctrl.c │ │ │ │ ├── eng_dyn.c │ │ │ │ ├── eng_err.c │ │ │ │ ├── eng_fat.c │ │ │ │ ├── eng_init.c │ │ │ │ ├── eng_int.h │ │ │ │ ├── eng_lib.c │ │ │ │ ├── eng_list.c │ │ │ │ ├── eng_openssl.c │ │ │ │ ├── eng_pkey.c │ │ │ │ ├── eng_table.c │ │ │ │ ├── engine.h │ │ │ │ ├── enginetest.c │ │ │ │ ├── tb_asnmth.c │ │ │ │ ├── tb_cipher.c │ │ │ │ ├── tb_dh.c │ │ │ │ ├── tb_digest.c │ │ │ │ ├── tb_dsa.c │ │ │ │ ├── tb_ecdh.c │ │ │ │ ├── tb_ecdsa.c │ │ │ │ ├── tb_pkmeth.c │ │ │ │ ├── tb_rand.c │ │ │ │ ├── tb_rsa.c │ │ │ │ └── tb_store.c │ │ │ ├── err │ │ │ │ ├── err.c │ │ │ │ ├── err.h │ │ │ │ ├── err_all.c │ │ │ │ ├── err_prn.c │ │ │ │ └── openssl.ec │ │ │ ├── evp │ │ │ │ ├── bio_b64.c │ │ │ │ ├── bio_enc.c │ │ │ │ ├── bio_md.c │ │ │ │ ├── bio_ok.c │ │ │ │ ├── c_all.c │ │ │ │ ├── c_allc.c │ │ │ │ ├── c_alld.c │ │ │ │ ├── digest.c │ │ │ │ ├── e_aes.c │ │ │ │ ├── e_aes_cbc_hmac_sha1.c │ │ │ │ ├── e_bf.c │ │ │ │ ├── e_camellia.c │ │ │ │ ├── e_cast.c │ │ │ │ ├── e_des.c │ │ │ │ ├── e_des3.c │ │ │ │ ├── e_dsa.c │ │ │ │ ├── e_idea.c │ │ │ │ ├── e_null.c │ │ │ │ ├── e_old.c │ │ │ │ ├── e_rc2.c │ │ │ │ ├── e_rc4.c │ │ │ │ ├── e_rc4_hmac_md5.c │ │ │ │ ├── e_rc5.c │ │ │ │ ├── e_seed.c │ │ │ │ ├── e_xcbc_d.c │ │ │ │ ├── encode.c │ │ │ │ ├── evp.h │ │ │ │ ├── evp_acnf.c │ │ │ │ ├── evp_enc.c │ │ │ │ ├── evp_err.c │ │ │ │ ├── evp_key.c │ │ │ │ ├── evp_lib.c │ │ │ │ ├── evp_locl.h │ │ │ │ ├── evp_pbe.c │ │ │ │ ├── evp_pkey.c │ │ │ │ ├── evp_test.c │ │ │ │ ├── evptests.txt │ │ │ │ ├── m_dss.c │ │ │ │ ├── m_dss1.c │ │ │ │ ├── m_ecdsa.c │ │ │ │ ├── m_md4.c │ │ │ │ ├── m_md5.c │ │ │ │ ├── m_mdc2.c │ │ │ │ ├── m_null.c │ │ │ │ ├── m_ripemd.c │ │ │ │ ├── m_sha1.c │ │ │ │ ├── m_sigver.c │ │ │ │ ├── m_wp.c │ │ │ │ ├── names.c │ │ │ │ ├── openbsd_hw.c │ │ │ │ ├── p5_crpt.c │ │ │ │ ├── p5_crpt2.c │ │ │ │ ├── p_dec.c │ │ │ │ ├── p_enc.c │ │ │ │ ├── p_lib.c │ │ │ │ ├── p_open.c │ │ │ │ ├── p_seal.c │ │ │ │ ├── p_sign.c │ │ │ │ ├── p_verify.c │ │ │ │ ├── pmeth_fn.c │ │ │ │ ├── pmeth_gn.c │ │ │ │ └── pmeth_lib.c │ │ │ ├── ex_data.c │ │ │ ├── hmac │ │ │ │ ├── hm_ameth.c │ │ │ │ ├── hm_pmeth.c │ │ │ │ ├── hmac.c │ │ │ │ ├── hmac.h │ │ │ │ └── hmactest.c │ │ │ ├── ia64cpuid.S │ │ │ ├── jpake │ │ │ │ ├── jpake.c │ │ │ │ ├── jpake.h │ │ │ │ ├── jpake_err.c │ │ │ │ └── jpaketest.c │ │ │ ├── krb5 │ │ │ │ ├── krb5_asn.c │ │ │ │ └── krb5_asn.h │ │ │ ├── lhash │ │ │ │ ├── lh_stats.c │ │ │ │ ├── lh_test.c │ │ │ │ ├── lhash.c │ │ │ │ ├── lhash.h │ │ │ │ └── num.pl │ │ │ ├── md32_common.h │ │ │ ├── md4 │ │ │ │ ├── md4.c │ │ │ │ ├── md4.h │ │ │ │ ├── md4_dgst.c │ │ │ │ ├── md4_locl.h │ │ │ │ ├── md4_one.c │ │ │ │ ├── md4s.cpp │ │ │ │ └── md4test.c │ │ │ ├── md5 │ │ │ │ ├── asm │ │ │ │ │ ├── md5-586.S │ │ │ │ │ ├── md5-586.pl │ │ │ │ │ ├── md5-ia64.S │ │ │ │ │ └── md5-x86_64.pl │ │ │ │ ├── md5.c │ │ │ │ ├── md5.h │ │ │ │ ├── md5_dgst.c │ │ │ │ ├── md5_locl.h │ │ │ │ ├── md5_one.c │ │ │ │ ├── md5s.cpp │ │ │ │ └── md5test.c │ │ │ ├── mdc2 │ │ │ │ ├── mdc2.h │ │ │ │ ├── mdc2_one.c │ │ │ │ ├── mdc2dgst.c │ │ │ │ └── mdc2test.c │ │ │ ├── mem.c │ │ │ ├── mem_clr.c │ │ │ ├── mem_dbg.c │ │ │ ├── modes │ │ │ │ ├── asm │ │ │ │ │ ├── ghash-alpha.pl │ │ │ │ │ ├── ghash-armv4.S │ │ │ │ │ ├── ghash-armv4.pl │ │ │ │ │ ├── ghash-ia64.pl │ │ │ │ │ ├── ghash-parisc.pl │ │ │ │ │ ├── ghash-s390x.pl │ │ │ │ │ ├── ghash-sparcv9.pl │ │ │ │ │ ├── ghash-x86.S │ │ │ │ │ ├── ghash-x86.pl │ │ │ │ │ └── ghash-x86_64.pl │ │ │ │ ├── cbc128.c │ │ │ │ ├── ccm128.c │ │ │ │ ├── cfb128.c │ │ │ │ ├── ctr128.c │ │ │ │ ├── gcm128.c │ │ │ │ ├── modes_lcl.h │ │ │ │ ├── ofb128.c │ │ │ │ └── xts128.c │ │ │ ├── o_dir.c │ │ │ ├── o_dir.h │ │ │ ├── o_dir_test.c │ │ │ ├── o_init.c │ │ │ ├── o_str.c │ │ │ ├── o_str.h │ │ │ ├── o_time.c │ │ │ ├── o_time.h │ │ │ ├── objects │ │ │ │ ├── o_names.c │ │ │ │ ├── obj_dat.c │ │ │ │ ├── obj_dat.h │ │ │ │ ├── obj_dat.pl │ │ │ │ ├── obj_err.c │ │ │ │ ├── obj_lib.c │ │ │ │ ├── obj_mac.h │ │ │ │ ├── obj_mac.num │ │ │ │ ├── obj_xref.c │ │ │ │ ├── obj_xref.h │ │ │ │ ├── obj_xref.txt │ │ │ │ ├── objects.README │ │ │ │ ├── objects.h │ │ │ │ ├── objects.pl │ │ │ │ ├── objects.txt │ │ │ │ └── objxref.pl │ │ │ ├── ocsp │ │ │ │ ├── ocsp.h │ │ │ │ ├── ocsp_asn.c │ │ │ │ ├── ocsp_cl.c │ │ │ │ ├── ocsp_err.c │ │ │ │ ├── ocsp_ext.c │ │ │ │ ├── ocsp_ht.c │ │ │ │ ├── ocsp_lib.c │ │ │ │ ├── ocsp_prn.c │ │ │ │ ├── ocsp_srv.c │ │ │ │ └── ocsp_vfy.c │ │ │ ├── opensslconf.h │ │ │ ├── opensslconf.h.in │ │ │ ├── opensslv.h │ │ │ ├── ossl_typ.h │ │ │ ├── pariscid.pl │ │ │ ├── pem │ │ │ │ ├── message │ │ │ │ ├── pem.h │ │ │ │ ├── pem2.h │ │ │ │ ├── pem_all.c │ │ │ │ ├── pem_err.c │ │ │ │ ├── pem_info.c │ │ │ │ ├── pem_lib.c │ │ │ │ ├── pem_oth.c │ │ │ │ ├── pem_pk8.c │ │ │ │ ├── pem_pkey.c │ │ │ │ ├── pem_seal.c │ │ │ │ ├── pem_sign.c │ │ │ │ ├── pem_x509.c │ │ │ │ ├── pem_xaux.c │ │ │ │ ├── pkcs7.lis │ │ │ │ └── pvkfmt.c │ │ │ ├── perlasm │ │ │ │ ├── cbc.pl │ │ │ │ ├── ppc-xlate.pl │ │ │ │ ├── readme │ │ │ │ ├── x86_64-xlate.pl │ │ │ │ ├── x86asm.pl │ │ │ │ ├── x86gas.pl │ │ │ │ ├── x86masm.pl │ │ │ │ └── x86nasm.pl │ │ │ ├── pkcs12 │ │ │ │ ├── p12_add.c │ │ │ │ ├── p12_asn.c │ │ │ │ ├── p12_attr.c │ │ │ │ ├── p12_crpt.c │ │ │ │ ├── p12_crt.c │ │ │ │ ├── p12_decr.c │ │ │ │ ├── p12_init.c │ │ │ │ ├── p12_key.c │ │ │ │ ├── p12_kiss.c │ │ │ │ ├── p12_mutl.c │ │ │ │ ├── p12_npas.c │ │ │ │ ├── p12_p8d.c │ │ │ │ ├── p12_p8e.c │ │ │ │ ├── p12_utl.c │ │ │ │ ├── pk12err.c │ │ │ │ └── pkcs12.h │ │ │ ├── pkcs7 │ │ │ │ ├── bio_ber.c │ │ │ │ ├── dec.c │ │ │ │ ├── des.pem │ │ │ │ ├── doc │ │ │ │ ├── enc.c │ │ │ │ ├── es1.pem │ │ │ │ ├── example.c │ │ │ │ ├── example.h │ │ │ │ ├── info.pem │ │ │ │ ├── infokey.pem │ │ │ │ ├── p7 │ │ │ │ │ ├── a1 │ │ │ │ │ ├── a2 │ │ │ │ │ ├── cert.p7c │ │ │ │ │ ├── smime.p7m │ │ │ │ │ └── smime.p7s │ │ │ │ ├── pk7_asn1.c │ │ │ │ ├── pk7_attr.c │ │ │ │ ├── pk7_dgst.c │ │ │ │ ├── pk7_doit.c │ │ │ │ ├── pk7_enc.c │ │ │ │ ├── pk7_lib.c │ │ │ │ ├── pk7_mime.c │ │ │ │ ├── pk7_smime.c │ │ │ │ ├── pkcs7.h │ │ │ │ ├── pkcs7err.c │ │ │ │ ├── server.pem │ │ │ │ ├── sign.c │ │ │ │ ├── t │ │ │ │ │ ├── 3des.pem │ │ │ │ │ ├── 3dess.pem │ │ │ │ │ ├── c.pem │ │ │ │ │ ├── ff │ │ │ │ │ ├── msie-e │ │ │ │ │ ├── msie-e.pem │ │ │ │ │ ├── msie-enc-01 │ │ │ │ │ ├── msie-enc-01.pem │ │ │ │ │ ├── msie-enc-02 │ │ │ │ │ ├── msie-enc-02.pem │ │ │ │ │ ├── msie-s-a-e │ │ │ │ │ ├── msie-s-a-e.pem │ │ │ │ │ ├── nav-smime │ │ │ │ │ ├── s.pem │ │ │ │ │ └── server.pem │ │ │ │ └── verify.c │ │ │ ├── ppccpuid.pl │ │ │ ├── pqueue │ │ │ │ ├── pq_test.c │ │ │ │ ├── pqueue.c │ │ │ │ └── pqueue.h │ │ │ ├── rand │ │ │ │ ├── md_rand.c │ │ │ │ ├── rand.h │ │ │ │ ├── rand_egd.c │ │ │ │ ├── rand_err.c │ │ │ │ ├── rand_lcl.h │ │ │ │ ├── rand_lib.c │ │ │ │ ├── rand_nw.c │ │ │ │ ├── rand_os2.c │ │ │ │ ├── rand_unix.c │ │ │ │ ├── rand_win.c │ │ │ │ ├── randfile.c │ │ │ │ └── randtest.c │ │ │ ├── rc2 │ │ │ │ ├── rc2.h │ │ │ │ ├── rc2_cbc.c │ │ │ │ ├── rc2_ecb.c │ │ │ │ ├── rc2_locl.h │ │ │ │ ├── rc2_skey.c │ │ │ │ ├── rc2cfb64.c │ │ │ │ ├── rc2ofb64.c │ │ │ │ ├── rc2speed.c │ │ │ │ ├── rc2test.c │ │ │ │ ├── rrc2.doc │ │ │ │ ├── tab.c │ │ │ │ └── version │ │ │ ├── rc4 │ │ │ │ ├── asm │ │ │ │ │ ├── rc4-586.pl │ │ │ │ │ ├── rc4-ia64.pl │ │ │ │ │ ├── rc4-md5-x86_64.pl │ │ │ │ │ ├── rc4-parisc.pl │ │ │ │ │ ├── rc4-s390x.pl │ │ │ │ │ └── rc4-x86_64.pl │ │ │ │ ├── rc4.c │ │ │ │ ├── rc4.h │ │ │ │ ├── rc4_enc.c │ │ │ │ ├── rc4_locl.h │ │ │ │ ├── rc4_skey.c │ │ │ │ ├── rc4_utl.c │ │ │ │ ├── rc4s.cpp │ │ │ │ ├── rc4speed.c │ │ │ │ ├── rc4test.c │ │ │ │ └── rrc4.doc │ │ │ ├── ripemd │ │ │ │ ├── README │ │ │ │ ├── asm │ │ │ │ │ ├── rips.cpp │ │ │ │ │ └── rmd-586.pl │ │ │ │ ├── ripemd.h │ │ │ │ ├── rmd160.c │ │ │ │ ├── rmd_dgst.c │ │ │ │ ├── rmd_locl.h │ │ │ │ ├── rmd_one.c │ │ │ │ ├── rmdconst.h │ │ │ │ └── rmdtest.c │ │ │ ├── rsa │ │ │ │ ├── rsa.h │ │ │ │ ├── rsa_ameth.c │ │ │ │ ├── rsa_asn1.c │ │ │ │ ├── rsa_chk.c │ │ │ │ ├── rsa_crpt.c │ │ │ │ ├── rsa_depr.c │ │ │ │ ├── rsa_eay.c │ │ │ │ ├── rsa_err.c │ │ │ │ ├── rsa_gen.c │ │ │ │ ├── rsa_lib.c │ │ │ │ ├── rsa_locl.h │ │ │ │ ├── rsa_none.c │ │ │ │ ├── rsa_null.c │ │ │ │ ├── rsa_oaep.c │ │ │ │ ├── rsa_pk1.c │ │ │ │ ├── rsa_pmeth.c │ │ │ │ ├── rsa_prn.c │ │ │ │ ├── rsa_pss.c │ │ │ │ ├── rsa_saos.c │ │ │ │ ├── rsa_sign.c │ │ │ │ ├── rsa_ssl.c │ │ │ │ ├── rsa_test.c │ │ │ │ └── rsa_x931.c │ │ │ ├── s390xcap.c │ │ │ ├── s390xcpuid.S │ │ │ ├── sha │ │ │ │ ├── asm │ │ │ │ │ ├── README │ │ │ │ │ ├── sha1-586.S │ │ │ │ │ ├── sha1-586.pl │ │ │ │ │ ├── sha1-alpha.pl │ │ │ │ │ ├── sha1-armv4-large.S │ │ │ │ │ ├── sha1-armv4-large.pl │ │ │ │ │ ├── sha1-ia64.pl │ │ │ │ │ ├── sha1-mips.S │ │ │ │ │ ├── sha1-mips.pl │ │ │ │ │ ├── sha1-parisc.pl │ │ │ │ │ ├── sha1-ppc.pl │ │ │ │ │ ├── sha1-s390x.pl │ │ │ │ │ ├── sha1-sparcv9.pl │ │ │ │ │ ├── sha1-sparcv9a.pl │ │ │ │ │ ├── sha1-thumb.pl │ │ │ │ │ ├── sha1-x86_64.pl │ │ │ │ │ ├── sha256-586.S │ │ │ │ │ ├── sha256-586.pl │ │ │ │ │ ├── sha256-armv4.S │ │ │ │ │ ├── sha256-armv4.pl │ │ │ │ │ ├── sha256-mips.S │ │ │ │ │ ├── sha512-586.S │ │ │ │ │ ├── sha512-586.pl │ │ │ │ │ ├── sha512-armv4.S │ │ │ │ │ ├── sha512-armv4.pl │ │ │ │ │ ├── sha512-ia64.pl │ │ │ │ │ ├── sha512-mips.pl │ │ │ │ │ ├── sha512-parisc.pl │ │ │ │ │ ├── sha512-ppc.pl │ │ │ │ │ ├── sha512-s390x.pl │ │ │ │ │ ├── sha512-sparcv9.pl │ │ │ │ │ └── sha512-x86_64.pl │ │ │ │ ├── sha.c │ │ │ │ ├── sha.h │ │ │ │ ├── sha1.c │ │ │ │ ├── sha1_one.c │ │ │ │ ├── sha1dgst.c │ │ │ │ ├── sha1test.c │ │ │ │ ├── sha256.c │ │ │ │ ├── sha256t.c │ │ │ │ ├── sha512.c │ │ │ │ ├── sha512t.c │ │ │ │ ├── sha_dgst.c │ │ │ │ ├── sha_locl.h │ │ │ │ └── shatest.c │ │ │ ├── sparccpuid.S │ │ │ ├── sparcv9cap.c │ │ │ ├── srp │ │ │ │ ├── srp.h │ │ │ │ ├── srp_grps.h │ │ │ │ ├── srp_lcl.h │ │ │ │ ├── srp_lib.c │ │ │ │ └── srp_vfy.c │ │ │ ├── stack │ │ │ │ ├── safestack.h │ │ │ │ ├── stack.c │ │ │ │ └── stack.h │ │ │ ├── store │ │ │ │ ├── README │ │ │ │ ├── store.h │ │ │ │ ├── str_err.c │ │ │ │ ├── str_lib.c │ │ │ │ ├── str_locl.h │ │ │ │ ├── str_mem.c │ │ │ │ └── str_meth.c │ │ │ ├── symhacks.h │ │ │ ├── threads │ │ │ │ ├── README │ │ │ │ ├── mttest.c │ │ │ │ ├── netware.bat │ │ │ │ ├── profile.sh │ │ │ │ ├── ptest.bat │ │ │ │ ├── pthread.sh │ │ │ │ ├── pthread2.sh │ │ │ │ ├── purify.sh │ │ │ │ ├── solaris.sh │ │ │ │ └── th-lock.c │ │ │ ├── ts │ │ │ │ └── ts_err.c │ │ │ ├── txt_db │ │ │ │ ├── txt_db.c │ │ │ │ └── txt_db.h │ │ │ ├── ui │ │ │ │ ├── ui.h │ │ │ │ ├── ui_compat.c │ │ │ │ ├── ui_compat.h │ │ │ │ ├── ui_err.c │ │ │ │ ├── ui_lib.c │ │ │ │ ├── ui_locl.h │ │ │ │ ├── ui_openssl.c │ │ │ │ └── ui_util.c │ │ │ ├── uid.c │ │ │ ├── x509 │ │ │ │ ├── by_dir.c │ │ │ │ ├── by_file.c │ │ │ │ ├── x509.h │ │ │ │ ├── x509_att.c │ │ │ │ ├── x509_cmp.c │ │ │ │ ├── x509_d2.c │ │ │ │ ├── x509_def.c │ │ │ │ ├── x509_err.c │ │ │ │ ├── x509_ext.c │ │ │ │ ├── x509_lu.c │ │ │ │ ├── x509_obj.c │ │ │ │ ├── x509_r2x.c │ │ │ │ ├── x509_req.c │ │ │ │ ├── x509_set.c │ │ │ │ ├── x509_trs.c │ │ │ │ ├── x509_txt.c │ │ │ │ ├── x509_v3.c │ │ │ │ ├── x509_vfy.c │ │ │ │ ├── x509_vfy.h │ │ │ │ ├── x509_vpm.c │ │ │ │ ├── x509cset.c │ │ │ │ ├── x509name.c │ │ │ │ ├── x509rset.c │ │ │ │ ├── x509spki.c │ │ │ │ ├── x509type.c │ │ │ │ └── x_all.c │ │ │ ├── x509v3 │ │ │ │ ├── ext_dat.h │ │ │ │ ├── pcy_cache.c │ │ │ │ ├── pcy_data.c │ │ │ │ ├── pcy_int.h │ │ │ │ ├── pcy_lib.c │ │ │ │ ├── pcy_map.c │ │ │ │ ├── pcy_node.c │ │ │ │ ├── pcy_tree.c │ │ │ │ ├── tabtest.c │ │ │ │ ├── v3_addr.c │ │ │ │ ├── v3_akey.c │ │ │ │ ├── v3_akeya.c │ │ │ │ ├── v3_alt.c │ │ │ │ ├── v3_asid.c │ │ │ │ ├── v3_bcons.c │ │ │ │ ├── v3_bitst.c │ │ │ │ ├── v3_conf.c │ │ │ │ ├── v3_cpols.c │ │ │ │ ├── v3_crld.c │ │ │ │ ├── v3_enum.c │ │ │ │ ├── v3_extku.c │ │ │ │ ├── v3_genn.c │ │ │ │ ├── v3_ia5.c │ │ │ │ ├── v3_info.c │ │ │ │ ├── v3_int.c │ │ │ │ ├── v3_lib.c │ │ │ │ ├── v3_ncons.c │ │ │ │ ├── v3_ocsp.c │ │ │ │ ├── v3_pci.c │ │ │ │ ├── v3_pcia.c │ │ │ │ ├── v3_pcons.c │ │ │ │ ├── v3_pku.c │ │ │ │ ├── v3_pmaps.c │ │ │ │ ├── v3_prn.c │ │ │ │ ├── v3_purp.c │ │ │ │ ├── v3_skey.c │ │ │ │ ├── v3_sxnet.c │ │ │ │ ├── v3_utl.c │ │ │ │ ├── v3conf.c │ │ │ │ ├── v3err.c │ │ │ │ ├── v3prin.c │ │ │ │ └── x509v3.h │ │ │ ├── x86_64cpuid.pl │ │ │ └── x86cpuid.pl │ │ ├── e_os.h │ │ ├── e_os2.h │ │ ├── import_openssl.sh │ │ ├── include │ │ │ └── openssl │ │ │ │ ├── aes.h │ │ │ │ ├── asn1.h │ │ │ │ ├── asn1_mac.h │ │ │ │ ├── asn1t.h │ │ │ │ ├── bio.h │ │ │ │ ├── blowfish.h │ │ │ │ ├── bn.h │ │ │ │ ├── buffer.h │ │ │ │ ├── cmac.h │ │ │ │ ├── comp.h │ │ │ │ ├── conf.h │ │ │ │ ├── conf_api.h │ │ │ │ ├── crypto.h │ │ │ │ ├── des.h │ │ │ │ ├── des_old.h │ │ │ │ ├── dh.h │ │ │ │ ├── dsa.h │ │ │ │ ├── dso.h │ │ │ │ ├── dtls1.h │ │ │ │ ├── e_os2.h │ │ │ │ ├── ebcdic.h │ │ │ │ ├── ec.h │ │ │ │ ├── ecdh.h │ │ │ │ ├── ecdsa.h │ │ │ │ ├── engine.h │ │ │ │ ├── err.h │ │ │ │ ├── evp.h │ │ │ │ ├── hmac.h │ │ │ │ ├── krb5_asn.h │ │ │ │ ├── kssl.h │ │ │ │ ├── lhash.h │ │ │ │ ├── md4.h │ │ │ │ ├── md5.h │ │ │ │ ├── modes.h │ │ │ │ ├── obj_mac.h │ │ │ │ ├── objects.h │ │ │ │ ├── ocsp.h │ │ │ │ ├── opensslconf.h │ │ │ │ ├── opensslv.h │ │ │ │ ├── ossl_typ.h │ │ │ │ ├── pem.h │ │ │ │ ├── pem2.h │ │ │ │ ├── pkcs12.h │ │ │ │ ├── pkcs7.h │ │ │ │ ├── pqueue.h │ │ │ │ ├── rand.h │ │ │ │ ├── rc2.h │ │ │ │ ├── rc4.h │ │ │ │ ├── ripemd.h │ │ │ │ ├── rsa.h │ │ │ │ ├── safestack.h │ │ │ │ ├── sha.h │ │ │ │ ├── srp.h │ │ │ │ ├── srtp.h │ │ │ │ ├── ssl.h │ │ │ │ ├── ssl2.h │ │ │ │ ├── ssl23.h │ │ │ │ ├── ssl3.h │ │ │ │ ├── stack.h │ │ │ │ ├── symhacks.h │ │ │ │ ├── tls1.h │ │ │ │ ├── ts.h │ │ │ │ ├── txt_db.h │ │ │ │ ├── ui.h │ │ │ │ ├── ui_compat.h │ │ │ │ ├── x509.h │ │ │ │ ├── x509_vfy.h │ │ │ │ └── x509v3.h │ │ ├── openssl.config │ │ ├── openssl.version │ │ ├── patches │ │ │ ├── README │ │ │ ├── handshake_cutthrough.patch │ │ │ ├── jsse.patch │ │ │ ├── mips_private.patch │ │ │ ├── progs.patch │ │ │ ├── sha1_armv4_large.patch │ │ │ ├── small_records.patch │ │ │ └── testssl.sh │ │ └── ssl │ │ │ ├── Makefile │ │ │ ├── bio_ssl.c │ │ │ ├── d1_both.c │ │ │ ├── d1_clnt.c │ │ │ ├── d1_enc.c │ │ │ ├── d1_lib.c │ │ │ ├── d1_meth.c │ │ │ ├── d1_pkt.c │ │ │ ├── d1_srtp.c │ │ │ ├── d1_srvr.c │ │ │ ├── dtls1.h │ │ │ ├── kssl.c │ │ │ ├── kssl.h │ │ │ ├── kssl_lcl.h │ │ │ ├── s23_clnt.c │ │ │ ├── s23_lib.c │ │ │ ├── s23_meth.c │ │ │ ├── s23_pkt.c │ │ │ ├── s23_srvr.c │ │ │ ├── s2_clnt.c │ │ │ ├── s2_enc.c │ │ │ ├── s2_lib.c │ │ │ ├── s2_meth.c │ │ │ ├── s2_pkt.c │ │ │ ├── s2_srvr.c │ │ │ ├── s3_both.c │ │ │ ├── s3_clnt.c │ │ │ ├── s3_enc.c │ │ │ ├── s3_lib.c │ │ │ ├── s3_meth.c │ │ │ ├── s3_pkt.c │ │ │ ├── s3_srvr.c │ │ │ ├── srtp.h │ │ │ ├── ssl.h │ │ │ ├── ssl2.h │ │ │ ├── ssl23.h │ │ │ ├── ssl3.h │ │ │ ├── ssl_algs.c │ │ │ ├── ssl_asn1.c │ │ │ ├── ssl_cert.c │ │ │ ├── ssl_ciph.c │ │ │ ├── ssl_err.c │ │ │ ├── ssl_err2.c │ │ │ ├── ssl_lib.c │ │ │ ├── ssl_locl.h │ │ │ ├── ssl_rsa.c │ │ │ ├── ssl_sess.c │ │ │ ├── ssl_stat.c │ │ │ ├── ssl_txt.c │ │ │ ├── ssltest.c │ │ │ ├── t1_clnt.c │ │ │ ├── t1_enc.c │ │ │ ├── t1_lib.c │ │ │ ├── t1_meth.c │ │ │ ├── t1_reneg.c │ │ │ ├── t1_srvr.c │ │ │ ├── tls1.h │ │ │ └── tls_srp.c │ └── zlib │ │ ├── Android.mk │ │ ├── CleanSpec.mk │ │ ├── MODULE_LICENSE_BSD_LIKE │ │ ├── NOTICE │ │ ├── src │ │ ├── CMakeLists.txt │ │ ├── ChangeLog │ │ ├── FAQ │ │ ├── INDEX │ │ ├── Makefile.in │ │ ├── README │ │ ├── adler32.c │ │ ├── amiga │ │ │ ├── Makefile.pup │ │ │ └── Makefile.sas │ │ ├── as400 │ │ │ ├── bndsrc │ │ │ ├── compile.clp │ │ │ ├── readme.txt │ │ │ └── zlib.inc │ │ ├── compress.c │ │ ├── configure │ │ ├── contrib │ │ │ ├── README.contrib │ │ │ ├── ada │ │ │ │ ├── buffer_demo.adb │ │ │ │ ├── mtest.adb │ │ │ │ ├── read.adb │ │ │ │ ├── readme.txt │ │ │ │ ├── test.adb │ │ │ │ ├── zlib-streams.adb │ │ │ │ ├── zlib-streams.ads │ │ │ │ ├── zlib-thin.adb │ │ │ │ ├── zlib-thin.ads │ │ │ │ ├── zlib.adb │ │ │ │ ├── zlib.ads │ │ │ │ └── zlib.gpr │ │ │ ├── amd64 │ │ │ │ └── amd64-match.S │ │ │ ├── asm686 │ │ │ │ ├── README.686 │ │ │ │ └── match.S │ │ │ ├── blast │ │ │ │ ├── Makefile │ │ │ │ ├── README │ │ │ │ ├── blast.c │ │ │ │ ├── blast.h │ │ │ │ ├── test.pk │ │ │ │ └── test.txt │ │ │ ├── delphi │ │ │ │ ├── ZLib.pas │ │ │ │ ├── ZLibConst.pas │ │ │ │ ├── readme.txt │ │ │ │ └── zlibd32.mak │ │ │ ├── dotzlib │ │ │ │ ├── DotZLib.build │ │ │ │ ├── DotZLib.chm │ │ │ │ ├── DotZLib.sln │ │ │ │ ├── DotZLib │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ ├── ChecksumImpl.cs │ │ │ │ │ ├── CircularBuffer.cs │ │ │ │ │ ├── CodecBase.cs │ │ │ │ │ ├── Deflater.cs │ │ │ │ │ ├── DotZLib.cs │ │ │ │ │ ├── DotZLib.csproj │ │ │ │ │ ├── GZipStream.cs │ │ │ │ │ ├── Inflater.cs │ │ │ │ │ └── UnitTests.cs │ │ │ │ ├── LICENSE_1_0.txt │ │ │ │ └── readme.txt │ │ │ ├── gcc_gvmat64 │ │ │ │ └── gvmat64.S │ │ │ ├── infback9 │ │ │ │ ├── README │ │ │ │ ├── infback9.c │ │ │ │ ├── infback9.h │ │ │ │ ├── inffix9.h │ │ │ │ ├── inflate9.h │ │ │ │ ├── inftree9.c │ │ │ │ └── inftree9.h │ │ │ ├── inflate86 │ │ │ │ ├── inffas86.c │ │ │ │ └── inffast.S │ │ │ ├── iostream │ │ │ │ ├── test.cpp │ │ │ │ ├── zfstream.cpp │ │ │ │ └── zfstream.h │ │ │ ├── iostream2 │ │ │ │ ├── zstream.h │ │ │ │ └── zstream_test.cpp │ │ │ ├── iostream3 │ │ │ │ ├── README │ │ │ │ ├── TODO │ │ │ │ ├── test.cc │ │ │ │ ├── zfstream.cc │ │ │ │ └── zfstream.h │ │ │ ├── masmx64 │ │ │ │ ├── bld_ml64.bat │ │ │ │ ├── gvmat64.asm │ │ │ │ ├── inffas8664.c │ │ │ │ ├── inffasx64.asm │ │ │ │ └── readme.txt │ │ │ ├── masmx86 │ │ │ │ ├── bld_ml32.bat │ │ │ │ ├── inffas32.asm │ │ │ │ ├── match686.asm │ │ │ │ └── readme.txt │ │ │ ├── minizip │ │ │ │ ├── Makefile │ │ │ │ ├── Makefile.am │ │ │ │ ├── MiniZip64_Changes.txt │ │ │ │ ├── MiniZip64_info.txt │ │ │ │ ├── configure.ac │ │ │ │ ├── crypt.h │ │ │ │ ├── ioapi.c │ │ │ │ ├── ioapi.h │ │ │ │ ├── iowin32.c │ │ │ │ ├── iowin32.h │ │ │ │ ├── make_vms.com │ │ │ │ ├── miniunz.c │ │ │ │ ├── minizip.c │ │ │ │ ├── minizip.pc.in │ │ │ │ ├── mztools.c │ │ │ │ ├── mztools.h │ │ │ │ ├── unzip.c │ │ │ │ ├── unzip.h │ │ │ │ ├── zip.c │ │ │ │ └── zip.h │ │ │ ├── pascal │ │ │ │ ├── example.pas │ │ │ │ ├── readme.txt │ │ │ │ ├── zlibd32.mak │ │ │ │ └── zlibpas.pas │ │ │ ├── puff │ │ │ │ ├── Makefile │ │ │ │ ├── README │ │ │ │ ├── puff.c │ │ │ │ ├── puff.h │ │ │ │ ├── pufftest.c │ │ │ │ └── zeros.raw │ │ │ ├── testzlib │ │ │ │ ├── testzlib.c │ │ │ │ └── testzlib.txt │ │ │ ├── untgz │ │ │ │ ├── Makefile │ │ │ │ ├── Makefile.msc │ │ │ │ └── untgz.c │ │ │ └── vstudio │ │ │ │ ├── readme.txt │ │ │ │ ├── vc10 │ │ │ │ ├── miniunz.vcxproj │ │ │ │ ├── miniunz.vcxproj.filters │ │ │ │ ├── miniunz.vcxproj.user │ │ │ │ ├── minizip.vcxproj │ │ │ │ ├── minizip.vcxproj.filters │ │ │ │ ├── minizip.vcxproj.user │ │ │ │ ├── testzlib.vcxproj │ │ │ │ ├── testzlib.vcxproj.filters │ │ │ │ ├── testzlib.vcxproj.user │ │ │ │ ├── testzlibdll.vcxproj │ │ │ │ ├── testzlibdll.vcxproj.filters │ │ │ │ ├── testzlibdll.vcxproj.user │ │ │ │ ├── zlib.rc │ │ │ │ ├── zlibstat.vcxproj │ │ │ │ ├── zlibstat.vcxproj.filters │ │ │ │ ├── zlibstat.vcxproj.user │ │ │ │ ├── zlibvc.def │ │ │ │ ├── zlibvc.sln │ │ │ │ ├── zlibvc.vcxproj │ │ │ │ ├── zlibvc.vcxproj.filters │ │ │ │ └── zlibvc.vcxproj.user │ │ │ │ └── vc9 │ │ │ │ ├── miniunz.vcproj │ │ │ │ ├── minizip.vcproj │ │ │ │ ├── testzlib.vcproj │ │ │ │ ├── testzlibdll.vcproj │ │ │ │ ├── zlib.rc │ │ │ │ ├── zlibstat.vcproj │ │ │ │ ├── zlibvc.def │ │ │ │ ├── zlibvc.sln │ │ │ │ └── zlibvc.vcproj │ │ ├── crc32.c │ │ ├── crc32.h │ │ ├── deflate.c │ │ ├── deflate.h │ │ ├── doc │ │ │ ├── algorithm.txt │ │ │ ├── rfc1950.txt │ │ │ ├── rfc1951.txt │ │ │ ├── rfc1952.txt │ │ │ └── txtvsbin.txt │ │ ├── examples │ │ │ ├── README.examples │ │ │ ├── enough.c │ │ │ ├── fitblk.c │ │ │ ├── gun.c │ │ │ ├── gzappend.c │ │ │ ├── gzjoin.c │ │ │ ├── gzlog.c │ │ │ ├── gzlog.h │ │ │ ├── zlib_how.html │ │ │ ├── zpipe.c │ │ │ └── zran.c │ │ ├── gzclose.c │ │ ├── gzguts.h │ │ ├── gzlib.c │ │ ├── gzread.c │ │ ├── gzwrite.c │ │ ├── infback.c │ │ ├── inffast.c │ │ ├── inffast.h │ │ ├── inffixed.h │ │ ├── inflate.c │ │ ├── inflate.h │ │ ├── inftrees.c │ │ ├── inftrees.h │ │ ├── make_vms.com │ │ ├── msdos │ │ │ ├── Makefile.bor │ │ │ ├── Makefile.dj2 │ │ │ ├── Makefile.emx │ │ │ ├── Makefile.msc │ │ │ └── Makefile.tc │ │ ├── nintendods │ │ │ ├── Makefile │ │ │ └── README │ │ ├── old │ │ │ ├── Makefile.emx │ │ │ ├── Makefile.riscos │ │ │ ├── README │ │ │ ├── descrip.mms │ │ │ ├── os2 │ │ │ │ ├── Makefile.os2 │ │ │ │ └── zlib.def │ │ │ └── visual-basic.txt │ │ ├── qnx │ │ │ └── package.qpg │ │ ├── test │ │ │ ├── example.c │ │ │ ├── infcover.c │ │ │ └── minigzip.c │ │ ├── treebuild.xml │ │ ├── trees.c │ │ ├── trees.h │ │ ├── uncompr.c │ │ ├── watcom │ │ │ ├── watcom_f.mak │ │ │ └── watcom_l.mak │ │ ├── win32 │ │ │ ├── DLL_FAQ.txt │ │ │ ├── Makefile.bor │ │ │ ├── Makefile.gcc │ │ │ ├── Makefile.msc │ │ │ ├── README-WIN32.txt │ │ │ ├── VisualC.txt │ │ │ ├── zlib.def │ │ │ └── zlib1.rc │ │ ├── zconf.h │ │ ├── zconf.h.cmakein │ │ ├── zconf.h.in │ │ ├── zlib.3 │ │ ├── zlib.3.pdf │ │ ├── zlib.h │ │ ├── zlib.map │ │ ├── zlib.pc │ │ ├── zlib.pc.cmakein │ │ ├── zlib.pc.in │ │ ├── zlib2ansi │ │ ├── zutil.c │ │ └── zutil.h │ │ ├── update_zlib.sh │ │ ├── zconf.h │ │ ├── zlib.h │ │ └── zutil.h └── private │ └── android_filesystem_config.h ├── prebuilt └── openssh │ └── armeabi-v7a │ ├── bin │ ├── scp │ ├── sftp │ └── ssh │ └── lib │ └── libssh.so └── tools ├── build.sh ├── clean-device.sh ├── copyPrebuilt.sh └── install.sh /.gitignore: -------------------------------------------------------------------------------- 1 | libs/ 2 | obj/ 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Android Command-Line SSH 2 | 3 | This project is an installer for a non-rooted Android shell command line version of the SSH tools. 4 | 5 | Requirements: 6 | 7 | + ARM armeabi-v7a based Android device. 8 | + Android 1.6 or newer. 9 | + You must have a terminal emulator such as Android Terminal Emulator installed on your device. 10 | + You must have "adb" installed on your computer. 11 | + You must have "bash" installed on your computer. (Sorry if you've got a Windows machine.) 12 | 13 | Features: 14 | 15 | + Installs command-line versions of ssh, scp, and sftp. 16 | + Works on ordinary non-rooted Android devices. 17 | 18 | Install instructions: 19 | 20 | Connect your android device to your computer with USB cable. 21 | $ tools/install.sh 22 | 23 | Use instructions: 24 | 25 | + Launch Android Terminal Emulator 26 | + Put /data/local/bin on your PATH 27 | + Put /data/local/lib on your LD_LIBRARY_PATH 28 | $ ssh username@host 29 | 30 | Known Bugs / Limitations: 31 | 32 | + Looks for configuration files in /data/.ssh (which is not writable by non-rooted phones.) 33 | + Only supports armeabi-v7a devices. 34 | -------------------------------------------------------------------------------- /jni/Android.mk: -------------------------------------------------------------------------------- 1 | BIG_LOCAL_PATH := $(call my-dir) 2 | 3 | # include $(BIG_LOCAL_PATH)/external/zlib/Android.mk 4 | include $(BIG_LOCAL_PATH)/external/openssl/Android.mk 5 | include $(BIG_LOCAL_PATH)/external/openssh/Android.mk 6 | -------------------------------------------------------------------------------- /jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := armeabi-v7a 2 | -------------------------------------------------------------------------------- /jni/external/openssh/CREDITS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssh/CREDITS -------------------------------------------------------------------------------- /jni/external/openssh/LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssh/LICENCE -------------------------------------------------------------------------------- /jni/external/openssh/auth-options.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: auth-options.h,v 1.20 2010/05/07 11:30:29 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | #ifndef AUTH_OPTIONS_H 16 | #define AUTH_OPTIONS_H 17 | 18 | /* Linked list of custom environment strings */ 19 | struct envstring { 20 | struct envstring *next; 21 | char *s; 22 | }; 23 | 24 | /* Flags that may be set in authorized_keys options. */ 25 | extern int no_port_forwarding_flag; 26 | extern int no_agent_forwarding_flag; 27 | extern int no_x11_forwarding_flag; 28 | extern int no_pty_flag; 29 | extern int no_user_rc; 30 | extern char *forced_command; 31 | extern struct envstring *custom_environment; 32 | extern int forced_tun_device; 33 | extern int key_is_cert_authority; 34 | extern char *authorized_principals; 35 | 36 | int auth_parse_options(struct passwd *, char *, char *, u_long); 37 | void auth_clear_options(void); 38 | int auth_cert_options(Key *, struct passwd *); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /jni/external/openssh/authfile.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: authfile.h,v 1.16 2011/05/04 21:15:29 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | #ifndef AUTHFILE_H 16 | #define AUTHFILE_H 17 | 18 | int key_save_private(Key *, const char *, const char *, const char *); 19 | int key_load_file(int, const char *, Buffer *); 20 | Key *key_load_cert(const char *); 21 | Key *key_load_public(const char *, char **); 22 | Key *key_load_public_type(int, const char *, char **); 23 | Key *key_parse_private(Buffer *, const char *, const char *, char **); 24 | Key *key_load_private(const char *, const char *, char **); 25 | Key *key_load_private_cert(int, const char *, const char *, int *); 26 | Key *key_load_private_type(int, const char *, const char *, char **, int *); 27 | Key *key_load_private_pem(int, int, const char *, char **); 28 | int key_perm_ok(int, const char *); 29 | int key_in_file(Key *, const char *, int); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /jni/external/openssh/canohost.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: canohost.h,v 1.11 2009/05/27 06:31:25 andreas Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | const char *get_canonical_hostname(int); 16 | const char *get_remote_ipaddr(void); 17 | const char *get_remote_name_or_ip(u_int, int); 18 | 19 | char *get_peer_ipaddr(int); 20 | int get_peer_port(int); 21 | char *get_local_ipaddr(int); 22 | char *get_local_name(int); 23 | 24 | int get_remote_port(void); 25 | int get_local_port(void); 26 | int get_sock_port(int, int); 27 | void clear_cached_addr(void); 28 | 29 | void ipv64_normalise_mapped(struct sockaddr_storage *, socklen_t *); 30 | -------------------------------------------------------------------------------- /jni/external/openssh/cleanup.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: cleanup.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */ 2 | /* 3 | * Copyright (c) 2003 Markus Friedl 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | 18 | #include "includes.h" 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | 25 | #include "log.h" 26 | 27 | /* default implementation */ 28 | void 29 | cleanup_exit(int i) 30 | { 31 | _exit(i); 32 | } 33 | -------------------------------------------------------------------------------- /jni/external/openssh/compress.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: compress.h,v 1.12 2006/03/25 22:22:43 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland 6 | * All rights reserved 7 | * Interface to packet compression for ssh. 8 | * 9 | * As far as I am concerned, the code I have written for this software 10 | * can be used freely for any purpose. Any derived versions of this 11 | * software must be clearly marked as such, and if the derived work is 12 | * incompatible with the protocol description in the RFC file, it must be 13 | * called by a name other than "ssh" or "Secure Shell". 14 | */ 15 | 16 | #ifndef COMPRESS_H 17 | #define COMPRESS_H 18 | 19 | void buffer_compress_init_send(int); 20 | void buffer_compress_init_recv(void); 21 | void buffer_compress_uninit(void); 22 | void buffer_compress(Buffer *, Buffer *); 23 | void buffer_uncompress(Buffer *, Buffer *); 24 | 25 | #endif /* COMPRESS_H */ 26 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/caldera/openssh.spec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssh/contrib/caldera/openssh.spec -------------------------------------------------------------------------------- /jni/external/openssh/contrib/caldera/ssh-host-keygen: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # $Id: ssh-host-keygen,v 1.3 2008/11/03 09:16:01 djm Exp $ 4 | # 5 | # This script is normally run only *once* for a given host 6 | # (in a given period of time) -- on updates/upgrades/recovery 7 | # the ssh_host_key* files _should_ be retained! Otherwise false 8 | # "man-in-the-middle-attack" alerts will frighten unsuspecting 9 | # clients... 10 | 11 | keydir=@sysconfdir@ 12 | keygen=@sshkeygen@ 13 | 14 | if [ -f $keydir/ssh_host_key -o \ 15 | -f $keydir/ssh_host_key.pub ]; then 16 | echo "You already have an SSH1 RSA host key in $keydir/ssh_host_key." 17 | else 18 | echo "Generating SSH1 RSA host key." 19 | $keygen -t rsa1 -f $keydir/ssh_host_key -C '' -N '' 20 | fi 21 | 22 | if [ -f $keydir/ssh_host_rsa_key -o \ 23 | -f $keydir/ssh_host_rsa_key.pub ]; then 24 | echo "You already have an SSH2 RSA host key in $keydir/ssh_host_rsa_key." 25 | else 26 | echo "Generating SSH2 RSA host key." 27 | $keygen -t rsa -f $keydir/ssh_host_rsa_key -C '' -N '' 28 | fi 29 | 30 | if [ -f $keydir/ssh_host_dsa_key -o \ 31 | -f $keydir/ssh_host_dsa_key.pub ]; then 32 | echo "You already have an SSH2 DSA host key in $keydir/ssh_host_dsa_key." 33 | else 34 | echo "Generating SSH2 DSA host key." 35 | $keygen -t dsa -f $keydir/ssh_host_dsa_key -C '' -N '' 36 | fi 37 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/hpux/README: -------------------------------------------------------------------------------- 1 | README for OpenSSH HP-UX contrib files 2 | Kevin Steves 3 | 4 | sshd: configuration file for sshd.rc 5 | sshd.rc: SSH startup script 6 | egd: configuration file for egd.rc 7 | egd.rc: EGD (entropy gathering daemon) startup script 8 | 9 | To install: 10 | 11 | sshd.rc: 12 | 13 | o Verify paths in sshd.rc match your local installation 14 | (WHAT_PATH and WHAT_PID) 15 | o Customize sshd if needed (SSHD_ARGS) 16 | o Install: 17 | 18 | # cp sshd /etc/rc.config.d 19 | # chmod 444 /etc/rc.config.d/sshd 20 | # cp sshd.rc /sbin/init.d 21 | # chmod 555 /sbin/init.d/sshd.rc 22 | # ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K100sshd 23 | # ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S900sshd 24 | 25 | egd.rc: 26 | 27 | o Verify egd.pl path in egd.rc matches your local installation 28 | (WHAT_PATH) 29 | o Customize egd if needed (EGD_ARGS and EGD_LOG) 30 | o Add pseudo account: 31 | 32 | # groupadd egd 33 | # useradd -g egd egd 34 | # mkdir -p /etc/opt/egd 35 | # chown egd:egd /etc/opt/egd 36 | # chmod 711 /etc/opt/egd 37 | 38 | o Install: 39 | 40 | # cp egd /etc/rc.config.d 41 | # chmod 444 /etc/rc.config.d/egd 42 | # cp egd.rc /sbin/init.d 43 | # chmod 555 /sbin/init.d/egd.rc 44 | # ln -s /sbin/init.d/egd.rc /sbin/rc1.d/K600egd 45 | # ln -s /sbin/init.d/egd.rc /sbin/rc2.d/S400egd 46 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/redhat/gnome-ssh-askpass.csh: -------------------------------------------------------------------------------- 1 | setenv SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass 2 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/redhat/gnome-ssh-askpass.sh: -------------------------------------------------------------------------------- 1 | SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass 2 | export SSH_ASKPASS 3 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/solaris/README: -------------------------------------------------------------------------------- 1 | The following is a new package build script for Solaris. This is being 2 | introduced into OpenSSH 3.0 and above in hopes of simplifying the build 3 | process. As of 3.1p2 the script should work on all platforms that have 4 | SVR4 style package tools. 5 | 6 | The build process is called a 'dummy install'.. Which means the software does 7 | a "make install-nokeys DESTDIR=[fakeroot]". This way all manpages should 8 | be handled correctly and key are defered until the first time the sshd 9 | is started. 10 | 11 | Directions: 12 | 13 | 1. make -F Makefile.in distprep (Only if you are getting from the CVS tree) 14 | 2. ./configure --with-pam [..any other options you want..] 15 | 3. look at the top of buildpkg.sh for the configurable options and put 16 | any changes you want in openssh-config.local. Additional customizations 17 | can be done to the build process by creating one or more of the following 18 | scripts that will be sourced by buildpkg.sh. 19 | pkg_post_make_install_fixes.sh pkg-post-prototype-edit.sh 20 | pkg-preinstall.local pkg-postinstall.local pkg-preremove.local 21 | pkg-postremove.local pkg-request.local 22 | 4. Run "make package" 23 | 24 | If all goes well you should have a solaris package ready to be installed. 25 | 26 | If you have any problems with this script please post them to 27 | openssh-unix-dev@mindrot.org and I will try to assist you as best as I can. 28 | 29 | - Ben Lindstrom 30 | 31 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/contrib/suse/rc.config.sshd: -------------------------------------------------------------------------------- 1 | # 2 | # Start the Secure Shell (SSH) Daemon? 3 | # 4 | START_SSHD="yes" 5 | 6 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/deattack.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: deattack.h,v 1.10 2006/09/16 19:53:37 djm Exp $ */ 2 | 3 | /* 4 | * Cryptographic attack detector for ssh - Header file 5 | * 6 | * Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina. 7 | * 8 | * All rights reserved. Redistribution and use in source and binary 9 | * forms, with or without modification, are permitted provided that 10 | * this copyright notice is retained. 11 | * 12 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 13 | * WARRANTIES ARE DISCLAIMED. IN NO EVENT SHALL CORE SDI S.A. BE 14 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR 15 | * CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS 16 | * SOFTWARE. 17 | * 18 | * Ariel Futoransky 19 | * 20 | */ 21 | 22 | #ifndef _DEATTACK_H 23 | #define _DEATTACK_H 24 | 25 | /* Return codes */ 26 | #define DEATTACK_OK 0 27 | #define DEATTACK_DETECTED 1 28 | #define DEATTACK_DOS_DETECTED 2 29 | 30 | int detect_attack(u_char *, u_int32_t); 31 | #endif 32 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/match.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: match.h,v 1.15 2010/02/26 20:29:54 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | #ifndef MATCH_H 15 | #define MATCH_H 16 | 17 | int match_pattern(const char *, const char *); 18 | int match_pattern_list(const char *, const char *, u_int, int); 19 | int match_hostname(const char *, const char *, u_int); 20 | int match_host_and_ip(const char *, const char *, const char *); 21 | int match_user(const char *, const char *, const char *, const char *); 22 | char *match_list(const char *, const char *, u_int *); 23 | 24 | /* addrmatch.c */ 25 | int addr_match_list(const char *, const char *); 26 | int addr_match_cidr_list(const char *, const char *); 27 | #endif 28 | -------------------------------------------------------------------------------- /jni/external/openssh/md5crypt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ---------------------------------------------------------------------------- 3 | * "THE BEER-WARE LICENSE" (Revision 42): 4 | * 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 | -------------------------------------------------------------------------------- /jni/external/openssh/mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman 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 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/Makefile.in: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.in,v 1.46 2010/10/07 11:19:24 djm Exp $ 2 | 3 | sysconfdir=@sysconfdir@ 4 | piddir=@piddir@ 5 | srcdir=@srcdir@ 6 | top_srcdir=@top_srcdir@ 7 | 8 | VPATH=@srcdir@ 9 | CC=@CC@ 10 | LD=@LD@ 11 | CFLAGS=@CFLAGS@ 12 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ 13 | LIBS=@LIBS@ 14 | AR=@AR@ 15 | RANLIB=@RANLIB@ 16 | INSTALL=@INSTALL@ 17 | LDFLAGS=-L. @LDFLAGS@ 18 | 19 | OPENBSD=base64.o basename.o bindresvport.o daemon.o dirname.o fmt_scaled.o getcwd.o getgrouplist.o getopt.o getrrsetbyname.o glob.o inet_aton.o inet_ntoa.o inet_ntop.o mktemp.o pwcache.o readpassphrase.o realpath.o rresvport.o setenv.o setproctitle.o sha2.o sigact.o strlcat.o strlcpy.o strmode.o strptime.o strsep.o strtonum.o strtoll.o strtoul.o timingsafe_bcmp.o vis.o 20 | 21 | COMPAT=bsd-arc4random.o bsd-asprintf.o bsd-closefrom.o bsd-cray.o bsd-cygwin_util.o bsd-getpeereid.o bsd-misc.o bsd-nextstep.o bsd-openpty.o bsd-poll.o bsd-snprintf.o bsd-statvfs.o bsd-waitpid.o fake-rfc2553.o openssl-compat.o xmmap.o xcrypt.o 22 | 23 | PORTS=port-aix.o port-irix.o port-linux.o port-solaris.o port-tun.o port-uw.o 24 | 25 | .c.o: 26 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< 27 | 28 | all: libopenbsd-compat.a 29 | 30 | $(COMPAT): ../config.h 31 | $(OPENBSD): ../config.h 32 | $(PORTS): ../config.h 33 | 34 | libopenbsd-compat.a: $(COMPAT) $(OPENBSD) $(PORTS) 35 | $(AR) rv $@ $(COMPAT) $(OPENBSD) $(PORTS) 36 | $(RANLIB) $@ 37 | 38 | clean: 39 | rm -f *.o *.a core 40 | 41 | distclean: clean 42 | rm -f Makefile *~ 43 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/bsd-statvfs.c: -------------------------------------------------------------------------------- 1 | /* $Id: bsd-statvfs.c,v 1.1 2008/06/08 17:32:29 dtucker Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 2008 Darren Tucker 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER 15 | * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 16 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #include "includes.h" 20 | 21 | #include 22 | 23 | #ifndef HAVE_STATVFS 24 | int statvfs(const char *path, struct statvfs *buf) 25 | { 26 | errno = ENOSYS; 27 | return -1; 28 | } 29 | #endif 30 | 31 | #ifndef HAVE_FSTATVFS 32 | int fstatvfs(int fd, struct statvfs *buf) 33 | { 34 | errno = ENOSYS; 35 | return -1; 36 | } 37 | #endif 38 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/charclass.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Public domain, 2008, Todd C. Miller 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 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/port-linux.h: -------------------------------------------------------------------------------- 1 | /* $Id: port-linux.h,v 1.5 2011/01/25 01:16:18 djm Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 2006 Damien Miller 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #ifndef _PORT_LINUX_H 20 | #define _PORT_LINUX_H 21 | 22 | #ifdef WITH_SELINUX 23 | int ssh_selinux_enabled(void); 24 | void ssh_selinux_setup_pty(char *, const char *); 25 | void ssh_selinux_setup_exec_context(char *); 26 | void ssh_selinux_change_context(const char *); 27 | void ssh_selinux_setfscreatecon(const char *); 28 | #endif 29 | 30 | #ifdef LINUX_OOM_ADJUST 31 | void oom_adjust_restore(void); 32 | void oom_adjust_setup(void); 33 | #endif 34 | 35 | #endif /* ! _PORT_LINUX_H */ 36 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/port-solaris.h: -------------------------------------------------------------------------------- 1 | /* $Id: port-solaris.h,v 1.2 2010/11/05 01:03:05 dtucker Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 2006 Chad Mynhier. 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #ifndef _PORT_SOLARIS_H 20 | 21 | #include 22 | 23 | #include 24 | 25 | void solaris_contract_pre_fork(void); 26 | void solaris_contract_post_fork_child(void); 27 | void solaris_contract_post_fork_parent(pid_t pid); 28 | void solaris_set_default_project(struct passwd *); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/port-tun.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Reyk Floeter 3 | * 4 | * Permission to use, copy, modify, and distribute this software for any 5 | * purpose with or without fee is hereby granted, provided that the above 6 | * copyright notice and this permission notice appear in all copies. 7 | * 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | */ 16 | 17 | #ifndef _PORT_TUN_H 18 | #define _PORT_TUN_H 19 | 20 | struct Channel; 21 | 22 | #if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD) 23 | # define CUSTOM_SYS_TUN_OPEN 24 | int sys_tun_open(int, int); 25 | #endif 26 | 27 | #if defined(SSH_TUN_COMPAT_AF) || defined(SSH_TUN_PREPEND_AF) 28 | # define SSH_TUN_FILTER 29 | int sys_tun_infilter(struct Channel *, char *, int); 30 | u_char *sys_tun_outfilter(struct Channel *, u_char **, u_int *); 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/port-uw.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Tim Rice. All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions 6 | * are met: 7 | * 1. Redistributions of source code must retain the above copyright 8 | * notice, this list of conditions and the following disclaimer. 9 | * 2. Redistributions in binary form must reproduce the above copyright 10 | * notice, this list of conditions and the following disclaimer in the 11 | * documentation and/or other materials provided with the distribution. 12 | * 13 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 | */ 24 | 25 | #include "includes.h" 26 | 27 | #ifdef USE_LIBIAF 28 | char * get_iaf_password(struct passwd *pw); 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/regress/Makefile.in: -------------------------------------------------------------------------------- 1 | # $Id: Makefile.in,v 1.4 2006/08/19 09:12:14 dtucker Exp $ 2 | 3 | sysconfdir=@sysconfdir@ 4 | piddir=@piddir@ 5 | srcdir=@srcdir@ 6 | top_srcdir=@top_srcdir@ 7 | 8 | VPATH=@srcdir@ 9 | CC=@CC@ 10 | LD=@LD@ 11 | CFLAGS=@CFLAGS@ 12 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ 13 | EXEEXT=@EXEEXT@ 14 | LIBCOMPAT=../libopenbsd-compat.a 15 | LIBS=@LIBS@ 16 | LDFLAGS=@LDFLAGS@ $(LIBCOMPAT) 17 | 18 | TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \ 19 | strtonumtest$(EXEEXT) 20 | 21 | all: t-exec ${OTHERTESTS} 22 | 23 | %$(EXEEXT): %.c 24 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS) 25 | 26 | t-exec: $(TESTPROGS) 27 | @echo running compat regress tests 28 | @for TEST in ""$?; do \ 29 | echo "run test $${TEST}" ... 1>&2; \ 30 | ./$${TEST}$(EXEEXT) || exit $$? ; \ 31 | done 32 | @echo finished compat regress tests 33 | 34 | clean: 35 | rm -f *.o *.a core $(TESTPROGS) valid.out 36 | 37 | distclean: clean 38 | rm -f Makefile *~ 39 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/regress/strduptest.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Darren Tucker 3 | * 4 | * Permission to use, copy, modify, and distribute this software for any 5 | * purpose with or without fee is hereby granted, provided that the above 6 | * copyright notice and this permission notice appear in all copies. 7 | * 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | */ 16 | 17 | #include 18 | #include 19 | 20 | static int fail = 0; 21 | 22 | void 23 | test(const char *a) 24 | { 25 | char *b; 26 | 27 | b = strdup(a); 28 | if (b == 0) { 29 | fail = 1; 30 | return; 31 | } 32 | if (strcmp(a, b) != 0) 33 | fail = 1; 34 | free(b); 35 | } 36 | 37 | int 38 | main(void) 39 | { 40 | test(""); 41 | test("a"); 42 | test("\0"); 43 | test("abcdefghijklmnopqrstuvwxyz"); 44 | return fail; 45 | } 46 | -------------------------------------------------------------------------------- /jni/external/openssh/openbsd-compat/timingsafe_bcmp.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: timingsafe_bcmp.c,v 1.1 2010/09/24 13:33:00 matthew Exp $ */ 2 | /* 3 | * Copyright (c) 2010 Damien Miller. All rights reserved. 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | 18 | /* OPENBSD ORIGINAL: lib/libc/string/timingsafe_bcmp.c */ 19 | 20 | #include "includes.h" 21 | #ifndef HAVE_TIMINGSAFE_BCMP 22 | 23 | int 24 | timingsafe_bcmp(const void *b1, const void *b2, size_t n) 25 | { 26 | const unsigned char *p1 = b1, *p2 = b2; 27 | int ret = 0; 28 | 29 | for (; n > 0; n--) 30 | ret |= *p1++ ^ *p2++; 31 | return (ret != 0); 32 | } 33 | 34 | #endif /* TIMINGSAFE_BCMP */ 35 | -------------------------------------------------------------------------------- /jni/external/openssh/platform.h: -------------------------------------------------------------------------------- 1 | /* $Id: platform.h,v 1.7 2010/11/05 03:47:01 dtucker Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #include 20 | 21 | #include 22 | 23 | void platform_pre_listen(void); 24 | void platform_pre_fork(void); 25 | void platform_post_fork_parent(pid_t child_pid); 26 | void platform_post_fork_child(void); 27 | int platform_privileged_uidswap(void); 28 | void platform_setusercontext(struct passwd *); 29 | void platform_setusercontext_post_groups(struct passwd *); 30 | char *platform_get_krb5_client(const char *); 31 | char *platform_krb5_get_principal_name(const char *); 32 | 33 | 34 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/agent-getpeereid.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: agent-getpeereid.sh,v 1.4 2007/11/25 15:35:09 jmc Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="disallow agent attach from other uid" 5 | 6 | UNPRIV=nobody 7 | ASOCK=${OBJ}/agent 8 | SSH_AUTH_SOCK=/nonexistent 9 | 10 | if config_defined HAVE_GETPEEREID HAVE_GETPEERUCRED HAVE_SO_PEERCRED ; then 11 | : 12 | else 13 | echo "skipped (not supported on this platform)" 14 | exit 0 15 | fi 16 | if [ -z "$SUDO" ]; then 17 | echo "skipped: need SUDO to switch to uid $UNPRIV" 18 | exit 0 19 | fi 20 | 21 | 22 | trace "start agent" 23 | eval `${SSHAGENT} -s -a ${ASOCK}` > /dev/null 24 | r=$? 25 | if [ $r -ne 0 ]; then 26 | fail "could not start ssh-agent: exit code $r" 27 | else 28 | chmod 644 ${SSH_AUTH_SOCK} 29 | 30 | ssh-add -l > /dev/null 2>&1 31 | r=$? 32 | if [ $r -ne 1 ]; then 33 | fail "ssh-add failed with $r != 1" 34 | fi 35 | 36 | < /dev/null ${SUDO} -S -u ${UNPRIV} ssh-add -l 2>/dev/null 37 | r=$? 38 | if [ $r -lt 2 ]; then 39 | fail "ssh-add did not fail for ${UNPRIV}: $r < 2" 40 | fi 41 | 42 | trace "kill agent" 43 | ${SSHAGENT} -k > /dev/null 44 | fi 45 | 46 | rm -f ${OBJ}/agent 47 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/agent-ptrace.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: agent-ptrace.sh,v 1.1 2002/12/09 15:38:30 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="disallow agent ptrace attach" 5 | 6 | if have_prog uname ; then 7 | case `uname` in 8 | AIX|CYGWIN*|OSF1) 9 | echo "skipped (not supported on this platform)" 10 | exit 0 11 | ;; 12 | esac 13 | fi 14 | 15 | if have_prog gdb ; then 16 | : ok 17 | else 18 | echo "skipped (gdb not found)" 19 | exit 0 20 | fi 21 | 22 | if test -z "$SUDO" ; then 23 | echo "skipped (SUDO not set)" 24 | exit 0 25 | else 26 | $SUDO chown 0 ${SSHAGENT} 27 | $SUDO chgrp 0 ${SSHAGENT} 28 | $SUDO chmod 2755 ${SSHAGENT} 29 | fi 30 | 31 | trace "start agent" 32 | eval `${SSHAGENT} -s` > /dev/null 33 | r=$? 34 | if [ $r -ne 0 ]; then 35 | fail "could not start ssh-agent: exit code $r" 36 | else 37 | # ls -l ${SSH_AUTH_SOCK} 38 | gdb ${SSHAGENT} ${SSH_AGENT_PID} > ${OBJ}/gdb.out 2>&1 << EOF 39 | quit 40 | EOF 41 | if [ $? -ne 0 ]; then 42 | fail "gdb failed: exit code $?" 43 | fi 44 | egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace.*Permission denied.|procfs:.*: Invalid argument.|Unable to access task ' >/dev/null ${OBJ}/gdb.out 45 | r=$? 46 | rm -f ${OBJ}/gdb.out 47 | if [ $r -ne 0 ]; then 48 | fail "ptrace succeeded?: exit code $r" 49 | fi 50 | 51 | trace "kill agent" 52 | ${SSHAGENT} -k > /dev/null 53 | fi 54 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/agent-timeout.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: agent-timeout.sh,v 1.1 2002/06/06 00:38:40 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="agent timeout test" 5 | 6 | SSHAGENT_TIMEOUT=10 7 | 8 | trace "start agent" 9 | eval `${SSHAGENT} -s` > /dev/null 10 | r=$? 11 | if [ $r -ne 0 ]; then 12 | fail "could not start ssh-agent: exit code $r" 13 | else 14 | trace "add keys with timeout" 15 | for t in rsa rsa1; do 16 | ${SSHADD} -t ${SSHAGENT_TIMEOUT} $OBJ/$t > /dev/null 2>&1 17 | if [ $? -ne 0 ]; then 18 | fail "ssh-add did succeed exit code 0" 19 | fi 20 | done 21 | n=`${SSHADD} -l 2> /dev/null | wc -l` 22 | trace "agent has $n keys" 23 | if [ $n -ne 2 ]; then 24 | fail "ssh-add -l did not return 2 keys: $n" 25 | fi 26 | trace "sleeping 2*${SSHAGENT_TIMEOUT} seconds" 27 | sleep ${SSHAGENT_TIMEOUT} 28 | sleep ${SSHAGENT_TIMEOUT} 29 | ${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null 30 | if [ $? -ne 0 ]; then 31 | fail "ssh-add -l still returns keys after timeout" 32 | fi 33 | 34 | trace "kill agent" 35 | ${SSHAGENT} -k > /dev/null 36 | fi 37 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/banner.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: banner.sh,v 1.2 2003/10/11 11:49:49 dtucker Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="banner" 5 | echo "Banner $OBJ/banner.in" >> $OBJ/sshd_proxy 6 | 7 | rm -f $OBJ/banner.out $OBJ/banner.in $OBJ/empty.in 8 | touch $OBJ/empty.in 9 | 10 | trace "test missing banner file" 11 | verbose "test $tid: missing banner file" 12 | ( ${SSH} -2 -F $OBJ/ssh_proxy otherhost true 2>$OBJ/banner.out && \ 13 | cmp $OBJ/empty.in $OBJ/banner.out ) || \ 14 | fail "missing banner file" 15 | 16 | for s in 0 10 100 1000 10000 100000 ; do 17 | if [ "$s" = "0" ]; then 18 | # create empty banner 19 | touch $OBJ/banner.in 20 | elif [ "$s" = "10" ]; then 21 | # create 10-byte banner file 22 | echo "abcdefghi" >$OBJ/banner.in 23 | else 24 | # increase size 10x 25 | cp $OBJ/banner.in $OBJ/banner.out 26 | for i in 0 1 2 3 4 5 6 7 8 ; do 27 | cat $OBJ/banner.out >> $OBJ/banner.in 28 | done 29 | fi 30 | 31 | trace "test banner size $s" 32 | verbose "test $tid: size $s" 33 | ( ${SSH} -2 -F $OBJ/ssh_proxy otherhost true 2>$OBJ/banner.out && \ 34 | cmp $OBJ/banner.in $OBJ/banner.out ) || \ 35 | fail "banner size $s mismatch" 36 | done 37 | 38 | trace "test suppress banner (-q)" 39 | verbose "test $tid: suppress banner (-q)" 40 | ( ${SSH} -q -2 -F $OBJ/ssh_proxy otherhost true 2>$OBJ/banner.out && \ 41 | cmp $OBJ/empty.in $OBJ/banner.out ) || \ 42 | fail "suppress banner (-q)" 43 | 44 | rm -f $OBJ/banner.out $OBJ/banner.in $OBJ/empty.in 45 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/cipher-speed.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: cipher-speed.sh,v 1.4 2011/08/02 01:23:41 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="cipher speed" 5 | 6 | getbytes () 7 | { 8 | sed -n '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' 9 | } 10 | 11 | tries="1 2" 12 | DATA=/bin/ls 13 | DATA=/bsd 14 | 15 | ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 16 | arcfour128 arcfour256 arcfour 17 | aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se 18 | aes128-ctr aes192-ctr aes256-ctr" 19 | macs="hmac-sha1 hmac-md5 umac-64@openssh.com hmac-sha1-96 hmac-md5-96" 20 | config_defined HAVE_EVP_SHA256 && 21 | macs="$macs hmac-sha2-256 hmac-sha2-256-96 hmac-sha2-512 hmac-sha2-512-96" 22 | 23 | for c in $ciphers; do for m in $macs; do 24 | trace "proto 2 cipher $c mac $m" 25 | for x in $tries; do 26 | echon "$c/$m:\t" 27 | ( ${SSH} -o 'compression no' \ 28 | -F $OBJ/ssh_proxy -2 -m $m -c $c somehost \ 29 | exec sh -c \'"dd of=/dev/null obs=32k"\' \ 30 | < ${DATA} ) 2>&1 | getbytes 31 | 32 | if [ $? -ne 0 ]; then 33 | fail "ssh -2 failed with mac $m cipher $c" 34 | fi 35 | done 36 | done; done 37 | 38 | ciphers="3des blowfish" 39 | for c in $ciphers; do 40 | trace "proto 1 cipher $c" 41 | for x in $tries; do 42 | echon "$c:\t" 43 | ( ${SSH} -o 'compression no' \ 44 | -F $OBJ/ssh_proxy -1 -c $c somehost \ 45 | exec sh -c \'"dd of=/dev/null obs=32k"\' \ 46 | < ${DATA} ) 2>&1 | getbytes 47 | if [ $? -ne 0 ]; then 48 | fail "ssh -1 failed with cipher $c" 49 | fi 50 | done 51 | done 52 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/conch-ciphers.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: conch-ciphers.sh,v 1.2 2008/06/30 10:43:03 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="conch ciphers" 5 | 6 | DATA=/bin/ls 7 | COPY=${OBJ}/copy 8 | 9 | if test "x$REGRESS_INTEROP_CONCH" != "xyes" ; then 10 | echo "conch interop tests not enabled" 11 | exit 0 12 | fi 13 | 14 | start_sshd 15 | 16 | for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \ 17 | cast128-cbc blowfish 3des-cbc ; do 18 | verbose "$tid: cipher $c" 19 | rm -f ${COPY} 20 | # XXX the 2nd "cat" seems to be needed because of buggy FD handling 21 | # in conch 22 | ${CONCH} --identity $OBJ/rsa --port $PORT --user $USER -e none \ 23 | --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \ 24 | 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY} 25 | if [ $? -ne 0 ]; then 26 | fail "ssh cat $DATA failed" 27 | fi 28 | cmp ${DATA} ${COPY} || fail "corrupted copy" 29 | done 30 | rm -f ${COPY} 31 | 32 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/forcecommand.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: forcecommand.sh,v 1.1 2006/07/19 13:09:28 dtucker Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="forced command" 5 | 6 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak 7 | 8 | echon 'command="true" ' >$OBJ/authorized_keys_$USER 9 | cat $OBJ/rsa.pub >> $OBJ/authorized_keys_$USER 10 | echon 'command="true" ' >>$OBJ/authorized_keys_$USER 11 | cat $OBJ/rsa1.pub >> $OBJ/authorized_keys_$USER 12 | 13 | for p in 1 2; do 14 | trace "forced command in key option proto $p" 15 | ${SSH} -$p -F $OBJ/ssh_proxy somehost false \ || 16 | fail "forced command in key proto $p" 17 | done 18 | 19 | echon 'command="false" ' >$OBJ/authorized_keys_$USER 20 | cat $OBJ/rsa.pub >> $OBJ/authorized_keys_$USER 21 | echon 'command="false" ' >>$OBJ/authorized_keys_$USER 22 | cat $OBJ/rsa1.pub >> $OBJ/authorized_keys_$USER 23 | 24 | cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 25 | echo "ForceCommand true" >> $OBJ/sshd_proxy 26 | 27 | for p in 1 2; do 28 | trace "forced command in sshd_config overrides key option proto $p" 29 | ${SSH} -$p -F $OBJ/ssh_proxy somehost false \ || 30 | fail "forced command in key proto $p" 31 | done 32 | 33 | cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 34 | echo "ForceCommand false" >> $OBJ/sshd_proxy 35 | echo "Match User $USER" >> $OBJ/sshd_proxy 36 | echo " ForceCommand true" >> $OBJ/sshd_proxy 37 | 38 | for p in 1 2; do 39 | trace "forced command with match proto $p" 40 | ${SSH} -$p -F $OBJ/ssh_proxy somehost false \ || 41 | fail "forced command in key proto $p" 42 | done 43 | -------------------------------------------------------------------------------- /jni/external/openssh/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 <$OBJ/actual 16 | diff $OBJ/expect $OBJ/actual || fail "$tid proto $p" 17 | done 18 | 19 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/keygen-convert.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: keygen-convert.sh,v 1.1 2009/11/09 04:20:04 dtucker Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="convert keys" 5 | 6 | for t in rsa dsa; do 7 | # generate user key for agent 8 | trace "generating $t key" 9 | rm -f $OBJ/$t-key 10 | ${SSHKEYGEN} -q -N "" -t $t -f $OBJ/$t-key 11 | 12 | trace "export $t private to rfc4716 public" 13 | ${SSHKEYGEN} -q -e -f $OBJ/$t-key >$OBJ/$t-key-rfc || \ 14 | fail "export $t private to rfc4716 public" 15 | 16 | trace "export $t public to rfc4716 public" 17 | ${SSHKEYGEN} -q -e -f $OBJ/$t-key.pub >$OBJ/$t-key-rfc.pub || \ 18 | fail "$t public to rfc4716 public" 19 | 20 | cmp $OBJ/$t-key-rfc $OBJ/$t-key-rfc.pub || \ 21 | fail "$t rfc4716 exports differ between public and private" 22 | 23 | trace "import $t rfc4716 public" 24 | ${SSHKEYGEN} -q -i -f $OBJ/$t-key-rfc >$OBJ/$t-rfc-imported || \ 25 | fail "$t import rfc4716 public" 26 | 27 | cut -f1,2 -d " " $OBJ/$t-key.pub >$OBJ/$t-key-nocomment.pub 28 | cmp $OBJ/$t-key-nocomment.pub $OBJ/$t-rfc-imported || \ 29 | fail "$t imported differs from original" 30 | 31 | rm -f $OBJ/$t-key $OBJ/$t-key.pub $OBJ/$t-key-rfc $OBJ/$t-key-rfc.pub \ 32 | $OBJ/$t-rfc-imported $OBJ/$t-key-nocomment.pub 33 | done 34 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/login-timeout.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: login-timeout.sh,v 1.4 2005/02/27 23:13:36 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="connect after login grace timeout" 5 | 6 | trace "test login grace with privsep" 7 | echo "LoginGraceTime 10s" >> $OBJ/sshd_config 8 | echo "MaxStartups 1" >> $OBJ/sshd_config 9 | start_sshd 10 | 11 | (echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 & 12 | sleep 15 13 | ${SSH} -F $OBJ/ssh_config somehost true 14 | if [ $? -ne 0 ]; then 15 | fail "ssh connect after login grace timeout failed with privsep" 16 | fi 17 | 18 | $SUDO kill `$SUDO cat $PIDFILE` 19 | 20 | trace "test login grace without privsep" 21 | echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config 22 | start_sshd 23 | 24 | (echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 & 25 | sleep 15 26 | ${SSH} -F $OBJ/ssh_config somehost true 27 | if [ $? -ne 0 ]; then 28 | fail "ssh connect after login grace timeout failed without privsep" 29 | fi 30 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/putty-transfer.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: putty-transfer.sh,v 1.2 2008/06/30 10:31:11 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="putty transfer data" 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 | # XXX support protocol 1 too 15 | for p in 2; do 16 | for c in 0 1 ; do 17 | verbose "$tid: proto $p compression $c" 18 | rm -f ${COPY} 19 | cp ${OBJ}/.putty/sessions/localhost_proxy \ 20 | ${OBJ}/.putty/sessions/compression_$c 21 | echo "Compression=$c" >> ${OBJ}/.putty/sessions/kex_$k 22 | env HOME=$PWD ${PLINK} -load compression_$c -batch \ 23 | -i putty.rsa$p 127.0.0.1 cat ${DATA} > ${COPY} 24 | if [ $? -ne 0 ]; then 25 | fail "ssh cat $DATA failed" 26 | fi 27 | cmp ${DATA} ${COPY} || fail "corrupted copy" 28 | 29 | for s in 10 100 1k 32k 64k 128k 256k; do 30 | trace "proto $p compression $c dd-size ${s}" 31 | rm -f ${COPY} 32 | dd if=$DATA obs=${s} 2> /dev/null | \ 33 | env HOME=$PWD ${PLINK} -load compression_$c \ 34 | -batch -i putty.rsa$p 127.0.0.1 \ 35 | "cat > ${COPY}" 36 | if [ $? -ne 0 ]; then 37 | fail "ssh cat $DATA failed" 38 | fi 39 | cmp $DATA ${COPY} || fail "corrupted copy" 40 | done 41 | done 42 | done 43 | rm -f ${COPY} 44 | 45 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/rsa_openssh.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDsilwKcaKN6wSMNd1WgQ9+HRqQEkD0kCTVttrazGu0OhBU3Uko+dFD1Ip0CxdXmN25JQWxOYF7h/Ocu8P3jzv3RTX87xKR0YzlXTLX+SLtF/ySebS3xWPrlfRUDhh03hR5V+8xxvvy9widPYKw/oItwGSueOsEq1LTczCDv2dAjQ== 2 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/rsa_ssh2.prv: -------------------------------------------------------------------------------- 1 | ---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- 2 | Subject: ssh-keygen test 3 | Comment: "1024-bit rsa, Sat Jun 23 2001 12:21:26 -0400" 4 | P2/56wAAAi4AAAA3aWYtbW9kbntzaWdue3JzYS1wa2NzMS1zaGExfSxlbmNyeXB0e3JzYS 5 | 1wa2NzMXYyLW9hZXB9fQAAAARub25lAAAB3wAAAdsAAAARAQABAAAD9icflXO8eQxtKonp 6 | 45gOxXCiZG9hsfkgRpiXXHpUBMhM28C72RR1Dg2xKm4xz7smP2Apm+Y7XLZgIpzQ/+I76L 7 | 95XQv7JCHVHDXyNBmWX7XZP4tmspFq/Tdg28zHSA3CpZjjwq3qG/b8395tDMpF7v34PS3Z 8 | xOH3aFPvEQ0UsgEAAAQA7IpcCnGijesEjDXdVoEPfh0akBJA9JAk1bba2sxrtDoQVN1JKP 9 | nRQ9SKdAsXV5jduSUFsTmBe4fznLvD948790U1/O8SkdGM5V0y1/ki7Rf8knm0t8Vj65X0 10 | VA4YdN4UeVfvMcb78vcInT2CsP6CLcBkrnjrBKtS03Mwg79nQI0AAAH/VdpOHYCMLPl/GF 11 | +uRLMshY55Q6l+MdJ0jo0AdZrCCnxwa3YeVywwU0wsZyoTCdGMf6KYDr39PVxwRcGkJ7Ue 12 | YgAAAgDWXpLlKafIgS3i0moMORZHD8D86us3xMW4b7GV2/AaP+En5TbOCR18CO0g/WfGiS 13 | 7zOLkP+TO9JW5QzEONIt6NAAACAQEaegYoWMBSQkLA7VWbOlSowelFlU6uo/2FSY+PM0nm 14 | gE8UZ7j6HWGhJEU4DNo25m3yyxuposKTMHxt/OOqFmoB 15 | ---- END SSH2 ENCRYPTED PRIVATE KEY ---- 16 | --- 17 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/scp-ssh-wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $OpenBSD: scp-ssh-wrapper.sh,v 1.2 2005/12/14 04:36:39 dtucker Exp $ 3 | # Placed in the Public Domain. 4 | 5 | printname () { 6 | NAME=$1 7 | save_IFS=$IFS 8 | IFS=/ 9 | set -- `echo "$NAME"` 10 | IFS="$save_IFS" 11 | while [ $# -ge 1 ] ; do 12 | if [ "x$1" != "x" ]; then 13 | echo "D0755 0 $1" 14 | fi 15 | shift; 16 | done 17 | } 18 | 19 | # Discard all but last argument. We use arg later. 20 | while test "$1" != ""; do 21 | arg="$1" 22 | shift 23 | done 24 | 25 | BAD="../../../../../../../../../../../../../${DIR}/dotpathdir" 26 | 27 | case "$SCPTESTMODE" in 28 | badserver_0) 29 | echo "D0755 0 /${DIR}/rootpathdir" 30 | echo "C755 2 rootpathfile" 31 | echo "X" 32 | ;; 33 | badserver_1) 34 | echo "D0755 0 $BAD" 35 | echo "C755 2 file" 36 | echo "X" 37 | ;; 38 | badserver_2) 39 | echo "D0755 0 $BAD" 40 | echo "C755 2 file" 41 | echo "X" 42 | ;; 43 | badserver_3) 44 | printname $BAD 45 | echo "C755 2 file" 46 | echo "X" 47 | ;; 48 | badserver_4) 49 | printname $BAD 50 | echo "D0755 0 .." 51 | echo "C755 2 file" 52 | echo "X" 53 | ;; 54 | *) 55 | exec $arg 56 | ;; 57 | esac 58 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/sftp-batch.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: sftp-batch.sh,v 1.4 2009/08/13 01:11:55 djm Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="sftp batchfile" 5 | 6 | DATA=/bin/ls${EXEEXT} 7 | COPY=${OBJ}/copy 8 | BATCH=${OBJ}/sftp.bb 9 | 10 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.* 11 | 12 | cat << EOF > ${BATCH}.pass.1 13 | get $DATA $COPY 14 | put ${COPY} ${COPY}.1 15 | rm ${COPY} 16 | -put ${COPY} ${COPY}.2 17 | EOF 18 | 19 | cat << EOF > ${BATCH}.pass.2 20 | # This is a comment 21 | 22 | # That was a blank line 23 | ls 24 | EOF 25 | 26 | cat << EOF > ${BATCH}.fail.1 27 | get $DATA $COPY 28 | put ${COPY} ${COPY}.3 29 | rm ${COPY}.* 30 | # The next command should fail 31 | put ${COPY}.3 ${COPY}.4 32 | EOF 33 | 34 | cat << EOF > ${BATCH}.fail.2 35 | # The next command should fail 36 | jajajajaja 37 | EOF 38 | 39 | verbose "$tid: good commands" 40 | ${SFTP} -b ${BATCH}.pass.1 -D ${SFTPSERVER} >/dev/null 2>&1 \ 41 | || fail "good commands failed" 42 | 43 | verbose "$tid: bad commands" 44 | ${SFTP} -b ${BATCH}.fail.1 -D ${SFTPSERVER} >/dev/null 2>&1 \ 45 | && fail "bad commands succeeded" 46 | 47 | verbose "$tid: comments and blanks" 48 | ${SFTP} -b ${BATCH}.pass.2 -D ${SFTPSERVER} >/dev/null 2>&1 \ 49 | || fail "comments & blanks failed" 50 | 51 | verbose "$tid: junk command" 52 | ${SFTP} -b ${BATCH}.fail.2 -D ${SFTPSERVER} >/dev/null 2>&1 \ 53 | && fail "junk command succeeded" 54 | 55 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.* 56 | 57 | 58 | -------------------------------------------------------------------------------- /jni/external/openssh/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 < /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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/stderr-after-eof.sh: -------------------------------------------------------------------------------- 1 | # $OpenBSD: stderr-after-eof.sh,v 1.1 2002/03/23 16:38:09 markus Exp $ 2 | # Placed in the Public Domain. 3 | 4 | tid="stderr data after eof" 5 | 6 | DATA=/etc/motd 7 | DATA=${OBJ}/data 8 | COPY=${OBJ}/copy 9 | 10 | if have_prog md5sum; then 11 | CHECKSUM=md5sum 12 | elif have_prog openssl; then 13 | CHECKSUM="openssl md5" 14 | elif have_prog cksum; then 15 | CHECKSUM=cksum 16 | elif have_prog sum; then 17 | CHECKSUM=sum 18 | else 19 | fatal "No checksum program available, aborting $tid test" 20 | fi 21 | 22 | # setup data 23 | rm -f ${DATA} ${COPY} 24 | cp /dev/null ${DATA} 25 | for i in 1 2 3 4 5 6; do 26 | (date;echo $i) | $CHECKSUM >> ${DATA} 27 | done 28 | 29 | ${SSH} -2 -F $OBJ/ssh_proxy otherhost \ 30 | exec sh -c \'"exec > /dev/null; sleep 2; cat ${DATA} 1>&2 $s"\' \ 31 | 2> ${COPY} 32 | r=$? 33 | if [ $r -ne 0 ]; then 34 | fail "ssh failed with exit code $r" 35 | fi 36 | egrep 'Disconnecting: Received extended_data after EOF' ${COPY} && 37 | fail "ext data received after eof" 38 | cmp ${DATA} ${COPY} || fail "stderr corrupt" 39 | 40 | rm -f ${DATA} ${COPY} 41 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/t4.ok: -------------------------------------------------------------------------------- 1 | 3b:dd:44:e9:49:18:84:95:f1:e7:33:6b:9d:93:b1:36 2 | -------------------------------------------------------------------------------- /jni/external/openssh/regress/t5.ok: -------------------------------------------------------------------------------- 1 | xokes-lylis-byleh-zebib-kalus-bihas-tevah-haroz-suhar-foved-noxex 2 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/roaming_serv.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: roaming_serv.c,v 1.1 2009/10/24 11:18:23 andreas Exp $ */ 2 | /* 3 | * Copyright (c) 2004-2009 AppGate Network Security AB 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | 18 | #include "includes.h" 19 | 20 | #include 21 | 22 | #include "roaming.h" 23 | 24 | /* 25 | * Wait for the roaming client to reconnect. Returns 0 if a connect ocurred. 26 | */ 27 | int 28 | wait_for_roaming_reconnect(void) 29 | { 30 | return 1; 31 | } 32 | -------------------------------------------------------------------------------- /jni/external/openssh/rsa.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: rsa.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland 6 | * All rights reserved 7 | * RSA key generation, encryption and decryption. 8 | * 9 | * As far as I am concerned, the code I have written for this software 10 | * can be used freely for any purpose. Any derived versions of this 11 | * software must be clearly marked as such, and if the derived work is 12 | * incompatible with the protocol description in the RFC file, it must be 13 | * called by a name other than "ssh" or "Secure Shell". 14 | */ 15 | 16 | #ifndef RSA_H 17 | #define RSA_H 18 | 19 | #include 20 | #include 21 | 22 | void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); 23 | int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *); 24 | void rsa_generate_additional_parameters(RSA *); 25 | 26 | #endif /* RSA_H */ 27 | -------------------------------------------------------------------------------- /jni/external/openssh/serverloop.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: serverloop.h,v 1.6 2006/03/25 22:22:43 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | * Performs the interactive session. This handles data transmission between 16 | * the client and the program. Note that the notion of stdin, stdout, and 17 | * stderr in this function is sort of reversed: this function writes to stdin 18 | * (of the child program), and reads from stdout and stderr (of the child 19 | * program). 20 | */ 21 | #ifndef SERVERLOOP_H 22 | #define SERVERLOOP_H 23 | 24 | void server_loop(pid_t, int, int, int); 25 | void server_loop2(Authctxt *); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /jni/external/openssh/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 24 | 25 | OpenBSD 5.0 February 10, 2010 OpenBSD 5.0 26 | -------------------------------------------------------------------------------- /jni/external/openssh/ssh-pkcs11.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: ssh-pkcs11.h,v 1.2 2010/02/24 06:12:53 djm Exp $ */ 2 | /* 3 | * Copyright (c) 2010 Markus Friedl. All rights reserved. 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | int pkcs11_init(int); 18 | void pkcs11_terminate(void); 19 | int pkcs11_add_provider(char *, char *, Key ***); 20 | int pkcs11_del_provider(char *); 21 | -------------------------------------------------------------------------------- /jni/external/openssh/ssh-sandbox.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: ssh-sandbox.h,v 1.1 2011/06/23 09:34:13 djm Exp $ */ 2 | /* 3 | * Copyright (c) 2011 Damien Miller 4 | * 5 | * Permission to use, copy, modify, and distribute this software for any 6 | * purpose with or without fee is hereby granted, provided that the above 7 | * copyright notice and this permission notice appear in all copies. 8 | * 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | */ 17 | 18 | struct ssh_sandbox; 19 | 20 | struct ssh_sandbox *ssh_sandbox_init(void); 21 | void ssh_sandbox_child(struct ssh_sandbox *); 22 | void ssh_sandbox_parent_finish(struct ssh_sandbox *); 23 | void ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t); 24 | -------------------------------------------------------------------------------- /jni/external/openssh/sshlogin.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: sshlogin.h,v 1.8 2006/08/03 03:34:42 deraadt Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 record_login(pid_t, const char *, const char *, uid_t, 16 | const char *, struct sockaddr *, socklen_t); 17 | void record_logout(pid_t, const char *, const char *); 18 | time_t get_last_login_time(uid_t, const char *, char *, u_int); 19 | 20 | #ifdef LOGIN_NEEDS_UTMPX 21 | void record_utmp_only(pid_t, const char *, const char *, const char *, 22 | struct sockaddr *, socklen_t); 23 | #endif 24 | -------------------------------------------------------------------------------- /jni/external/openssh/sshpty.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: sshpty.h,v 1.12 2010/01/09 05:04:24 djm Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland 6 | * All rights reserved 7 | * Functions for allocating a pseudo-terminal and making it the controlling 8 | * tty. 9 | * 10 | * As far as I am concerned, the code I have written for this software 11 | * can be used freely for any purpose. Any derived versions of this 12 | * software must be clearly marked as such, and if the derived work is 13 | * incompatible with the protocol description in the RFC file, it must be 14 | * called by a name other than "ssh" or "Secure Shell". 15 | */ 16 | 17 | #include 18 | 19 | struct termios *get_saved_tio(void); 20 | void leave_raw_mode(int); 21 | void enter_raw_mode(int); 22 | 23 | int pty_allocate(int *, int *, char *, size_t); 24 | void pty_release(const char *); 25 | void pty_make_controlling_tty(int *, const char *); 26 | void pty_change_window_size(int, u_int, u_int, u_int, u_int); 27 | void pty_setowner(struct passwd *, const char *); 28 | -------------------------------------------------------------------------------- /jni/external/openssh/start-ssh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | umask 077 4 | 5 | # DEBUG=1 6 | 7 | DSA_KEY=/data/ssh/ssh_host_dsa_key 8 | DSA_PUB_KEY=/data/ssh/ssh_host_dsa_key.pub 9 | RSA_KEY=/data/ssh/ssh_host_rsa_key 10 | RSA_PUB_KEY=/data/ssh/ssh_host_rsa_key.pub 11 | AUTHORIZED_KEYS=/data/ssh/authorized_keys 12 | DEFAULT_AUTHORIZED_KEYS=/system/etc/security/authorized_keys.default 13 | 14 | if [ ! -f $DSA_KEY ]; then 15 | ssh-keygen -t dsa -f $DSA_KEY -N "" 16 | chmod 600 /$DSA_KEY 17 | chmod 644 $DSA_PUB_KEY 18 | fi 19 | 20 | if [ ! -f $RSA_KEY ]; then 21 | /system/bin/ssh-keygen -t rsa -f $RSA_KEY -N "" 22 | chmod 600 /$RSA_KEY 23 | chmod 644 $RSA_PUB_KEY 24 | fi 25 | 26 | if [[ ! -f $AUTHORIZED_KEYS && -f $DEFAULT_AUTHORIZED_KEYS ]]; then 27 | cat $DEFAULT_AUTHORIZED_KEYS > $AUTHORIZED_KEYS 28 | fi 29 | 30 | 31 | if [ "1" == "$DEBUG" ] ; then 32 | # run sshd in debug mode and capture output to logcat 33 | /system/bin/logwrapper /system/bin/sshd -f /system/etc/ssh/sshd_config -D -d 34 | else 35 | # don't daemonize - otherwise we can't stop the sshd service 36 | /system/bin/sshd -f /system/etc/ssh/sshd_config -D 37 | fi 38 | -------------------------------------------------------------------------------- /jni/external/openssh/uidswap.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: uidswap.h,v 1.13 2006/08/03 03:34:42 deraadt Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , 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 | -------------------------------------------------------------------------------- /jni/external/openssh/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 | -------------------------------------------------------------------------------- /jni/external/openssh/xmalloc.h: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: xmalloc.h,v 1.13 2006/08/03 03:34:42 deraadt Exp $ */ 2 | 3 | /* 4 | * Author: Tatu Ylonen 5 | * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland 6 | * All rights reserved 7 | * Created: Mon Mar 20 22:09:17 1995 ylo 8 | * 9 | * Versions of malloc and friends that check their results, and never return 10 | * failure (they call fatal if they encounter an error). 11 | * 12 | * As far as I am concerned, the code I have written for this software 13 | * can be used freely for any purpose. Any derived versions of this 14 | * software must be clearly marked as such, and if the derived work is 15 | * incompatible with the protocol description in the RFC file, it must be 16 | * called by a name other than "ssh" or "Secure Shell". 17 | */ 18 | 19 | void *xmalloc(size_t); 20 | void *xcalloc(size_t, size_t); 21 | void *xrealloc(void *, size_t, size_t); 22 | void xfree(void *); 23 | char *xstrdup(const char *); 24 | int xasprintf(char **, const char *, ...) 25 | __attribute__((__format__ (printf, 2, 3))) 26 | __attribute__((__nonnull__ (2))); 27 | -------------------------------------------------------------------------------- /jni/external/openssl/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | # Enable to be able to use ALOG* with #include "cutils/log.h" 4 | #log_c_includes += system/core/include 5 | #log_shared_libraries := liblog 6 | 7 | # These makefiles are here instead of being Android.mk files in the 8 | # respective crypto, ssl, and apps directories so 9 | # that import_openssl.sh import won't remove them. 10 | include $(LOCAL_PATH)/Crypto.mk 11 | include $(LOCAL_PATH)/Ssl.mk 12 | include $(LOCAL_PATH)/Apps.mk 13 | -------------------------------------------------------------------------------- /jni/external/openssl/MODULE_LICENSE_BSD_LIKE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/MODULE_LICENSE_BSD_LIKE -------------------------------------------------------------------------------- /jni/external/openssl/android-config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # These flags represent the build-time configuration of openssl for android 3 | # 4 | # They were pruned from the "Makefile" generated by running ./Configure from import_openssl.sh 5 | # 6 | 7 | # From CLFAG= 8 | LOCAL_CFLAGS += -DOPENSSL_THREADS -D_REENTRANT -DL_ENDIAN #-DTERMIO 9 | 10 | ifneq ($(HOST_OS),windows) 11 | LOCAL_CFLAGS += -DDSO_DLFCN -DHAVE_DLFCN_H 12 | endif 13 | 14 | # From DEPFLAG= 15 | LOCAL_CFLAGS += -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_CAST -DOPENSSL_NO_CMS -DOPENSSL_NO_GMP -DOPENSSL_NO_IDEA -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_SHA0 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED -DOPENSSL_NO_STORE -DOPENSSL_NO_WHIRLPOOL 16 | 17 | # Extra 18 | LOCAL_CFLAGS += -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_NO_GOST -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_RSAX -DOPENSSL_NO_RDRAND -DOPENSSL_NO_SCTP -DOPENSSL_NO_HEARTBEATS 19 | 20 | # Directories 21 | LOCAL_CFLAGS += -DOPENSSLDIR="\"/system/lib/ssl\"" -DENGINESDIR="\"/system/lib/ssl/engines\"" 22 | 23 | # Intentionally excluded http://b/7079965 24 | # -DZLIB 25 | 26 | # Debug 27 | # LOCAL_CFLAGS += -DCIPHER_DEBUG 28 | -------------------------------------------------------------------------------- /jni/external/openssl/android.testssl/Uss.cnf: -------------------------------------------------------------------------------- 1 | # 2 | # SSLeay example configuration file. 3 | # This is mostly being used for generation of certificate requests. 4 | # 5 | 6 | RANDFILE = /sdcard/android.testssl/.rnd 7 | 8 | #################################################################### 9 | [ req ] 10 | default_bits = 2048 11 | default_keyfile = keySS.pem 12 | distinguished_name = req_distinguished_name 13 | encrypt_rsa_key = no 14 | default_md = sha256 15 | 16 | [ req_distinguished_name ] 17 | countryName = Country Name (2 letter code) 18 | countryName_default = AU 19 | countryName_value = AU 20 | 21 | organizationName = Organization Name (eg, company) 22 | organizationName_value = Dodgy Brothers 23 | 24 | 0.commonName = Common Name (eg, YOUR name) 25 | 0.commonName_value = Brother 1 26 | 27 | 1.commonName = Common Name (eg, YOUR name) 28 | 1.commonName_value = Brother 2 29 | 30 | [ v3_ee ] 31 | subjectKeyIdentifier=hash 32 | authorityKeyIdentifier=keyid,issuer:always 33 | basicConstraints = CA:false 34 | keyUsage = nonRepudiation, digitalSignature, keyEncipherment 35 | issuerAltName=issuer:copy 36 | 37 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/ca-cert.srl: -------------------------------------------------------------------------------- 1 | 07 2 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/ca-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXQIBAAKBgQCju6PLddelT+nIMm07GQwmYa/eZ2JWbsmt2gotSCqM7asFp425 3 | gxSK4jqhhT62UPpqDBEwvQ+fYkVv3RV0r9ReuZGv12NoS4fXsQgqO17lHA7Od0Kd 4 | 2yNwJjKh44MxPKDt2o8iQMyZE0zlHnEFNpsP4COLTDNC6ljEEu5bk8uPsQIDAQAB 5 | AoGAVZmpFZsDZfr0l2S9tLLwpjRWNOlKATQkno6q2WesT0eGLQufTciY+c8ypfU6 6 | hyio8r5iUl/VhhdjhAtKx1mRpiotftHo/eYf8rtsrnprOnWG0bWjLjtIoMbcxGn2 7 | J3bN6LJmbJMjDs0eJ3KnTu646F3nDUw2oGAwmpzKXA1KAP0CQQDRvQhxk2D3Pehs 8 | HvG665u2pB5ipYQngEFlZO7RHJZzJOZEWSLuuMqaF/7pTfA5jiBvWqCgJeCRRInL 9 | 21ru4dlPAkEAx9jj7BgKn5TYnMoBSSe0afjsV9oApVpN1Nacb1YDtCwy+scp3++s 10 | nFxlv98wxIlSdpwMUn+AUWfjiWR7Tu/G/wJBAJ/KjwZIrFVxewP0x2ILYsTRYLzz 11 | MS4PDsO7FB+I0i7DbBOifXS2oNSpd3I0CNMwrxFnUHzynpbOStVfN3ZL5w0CQQCa 12 | pwFahxBRhkJKsxhjoFJBX9yl75JoY4Wvm5Tbo9ih6UJaRx3kqfkN14L2BKYcsZgb 13 | KY9vmDOYy6iNfjDeWTfJAkBkfPUb8oTJ/nSP5zN6sqGxSY4krc4xLxpRmxoJ8HL2 14 | XfhqXkTzbU13RX9JJ/NZ8vQN9Vm2NhxRGJocQkmcdVtJ 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/ca-req.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBmTCCAQICAQAwWzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQx 3 | GjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRswGQYDVQQDExJUZXN0IENBICgx 4 | MDI0IGJpdCkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKO7o8t116VP6cgy 5 | bTsZDCZhr95nYlZuya3aCi1IKoztqwWnjbmDFIriOqGFPrZQ+moMETC9D59iRW/d 6 | FXSv1F65ka/XY2hLh9exCCo7XuUcDs53Qp3bI3AmMqHjgzE8oO3ajyJAzJkTTOUe 7 | cQU2mw/gI4tMM0LqWMQS7luTy4+xAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAKlk7 8 | cxu9gCJN3/iQFyJXQ6YphaiQAT5VBXTx9ftRrQIjA3vxlDzPWGDy+V5Tqa7h8PtR 9 | 5Bn00JShII2zf0hjyjKils6x/UkWmjEiwSiFp4hR70iE8XwSNEHY2P6j6nQEIpgW 10 | kbfgmmUqk7dl2V+ossTJ80B8SBpEhrn81V/cHxA= 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBoDCCAUoCAQAwDQYJKoZIhvcNAQEEBQAwYzELMAkGA1UEBhMCQVUxEzARBgNV 3 | BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMSMwIQYD 4 | VQQDExpTZXJ2ZXIgdGVzdCBjZXJ0ICg1MTIgYml0KTAeFw05NzA5MDkwMzQxMjZa 5 | Fw05NzEwMDkwMzQxMjZaMF4xCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0 6 | YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxFzAVBgNVBAMT 7 | DkVyaWMgdGhlIFlvdW5nMFEwCQYFKw4DAgwFAANEAAJBALVEqPODnpI4rShlY8S7 8 | tB713JNvabvn6Gned7zylwLLiXQAo/PAT6mfdWPTyCX9RlId/Aroh1ou893BA32Q 9 | sggwDQYJKoZIhvcNAQEEBQADQQCU5SSgapJSdRXJoX+CpCvFy+JVh9HpSjCpSNKO 10 | 19raHv98hKAUJuP9HyM+SUsffO6mAIgitUaqW8/wDMePhEC3 11 | -----END CERTIFICATE----- 12 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dh1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIGHAoGBAPSI/VhOSdvNILSd5JEHNmszbDgNRR0PfIizHHxbLY7288kjwEPwpVsY 3 | jY67VYy4XTjTNP18F1dDox0YbN4zISy1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6 4 | ypUM2Zafq9AKUJsCRtMIPWakXUGfnHy9iUsiGSa6q6Jew1XpL3jHAgEC 5 | -----END DH PARAMETERS----- 6 | 7 | These are the 1024 bit DH parameters from "Assigned Number for SKIP Protocols" 8 | (http://www.skip-vpn.org/spec/numbers.html). 9 | See there for how they were generated. 10 | Note that g is not a generator, but this is not a problem since p is a safe prime. 11 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dh2048.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIIBCAKCAQEA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlLOCDaAadWoxTpj0BV 3 | 89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39uK50 4 | T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1YTknb 5 | zSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9fBdX 6 | Q6MdGGzeMyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCbAkbT 7 | CD1mpF1Bn5x8vYlLIhkmuquiXsNV6TILOwIBAg== 8 | -----END DH PARAMETERS----- 9 | 10 | These are the 2048 bit DH parameters from "Assigned Number for SKIP Protocols" 11 | (http://www.skip-vpn.org/spec/numbers.html). 12 | See there for how they were generated. 13 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dh4096.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIICCAKCAgEA+hRyUsFN4VpJ1O8JLcCo/VWr19k3BCgJ4uk+d+KhehjdRqNDNyOQ 3 | l/MOyQNQfWXPeGKmOmIig6Ev/nm6Nf9Z2B1h3R4hExf+zTiHnvVPeRBhjdQi81rt 4 | Xeoh6TNrSBIKIHfUJWBh3va0TxxjQIs6IZOLeVNRLMqzeylWqMf49HsIXqbcokUS 5 | Vt1BkvLdW48j8PPv5DsKRN3tloTxqDJGo9tKvj1Fuk74A+Xda1kNhB7KFlqMyN98 6 | VETEJ6c7KpfOo30mnK30wqw3S8OtaIR/maYX72tGOno2ehFDkq3pnPtEbD2CScxc 7 | alJC+EL7RPk5c/tgeTvCngvc1KZn92Y//EI7G9tPZtylj2b56sHtMftIoYJ9+ODM 8 | sccD5Piz/rejE3Ome8EOOceUSCYAhXn8b3qvxVI1ddd1pED6FHRhFvLrZxFvBEM9 9 | ERRMp5QqOaHJkM+Dxv8Cj6MqrCbfC4u+ZErxodzuusgDgvZiLF22uxMZbobFWyte 10 | OvOzKGtwcTqO/1wV5gKkzu1ZVswVUQd5Gg8lJicwqRWyyNRczDDoG9jVDxmogKTH 11 | AaqLulO7R8Ifa1SwF2DteSGVtgWEN8gDpN3RBmmPTDngyF2DHb5qmpnznwtFKdTL 12 | KWbuHn491xNO25CQWMtem80uKw+pTnisBRF/454n1Jnhub144YRBoN8CAQI= 13 | -----END DH PARAMETERS----- 14 | 15 | These are the 4096 bit DH parameters from "Assigned Number for SKIP Protocols" 16 | (http://www.skip-vpn.org/spec/numbers.html). 17 | See there for how they were generated. 18 | Note that g is not a generator, but this is not a problem since p is a safe prime. 19 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dh512.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak 3 | XUGfnHy9iUsiGSa6q6Jew1XpKgVfAgEC 4 | -----END DH PARAMETERS----- 5 | 6 | These are the 512 bit DH parameters from "Assigned Number for SKIP Protocols" 7 | (http://www.skip-vpn.org/spec/numbers.html). 8 | See there for how they were generated. 9 | Note that g is not a generator, but this is not a problem since p is a safe prime. 10 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dsa1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PARAMETERS----- 2 | MIIBHgKBgQCnP26Fv0FqKX3wn0cZMJCaCR3aajMexT2GlrMV4FMuj+BZgnOQPnUx 3 | mUd6UvuF5NmmezibaIqEm4fGHrV+hktTW1nPcWUZiG7OZq5riDb77Cjcwtelu+Us 4 | OSZL2ppwGJU3lRBWI/YV7boEXt45T/23Qx+1pGVvzYAR5HCVW1DNSQIVAPcHMe36 5 | bAYD1YWKHKycZedQZmVvAoGATd9MA6aRivUZb1BGJZnlaG8w42nh5bNdmLsohkj8 6 | 3pkEP1+IDJxzJA0gXbkqmj8YlifkYofBe3RiU/xhJ6h6kQmdtvFNnFQPWAbuSXQH 7 | zlV+I84W9srcWmEBfslxtU323DQph2j2XiCTs9v15AlsQReVkusBtXOlan7YMu0O 8 | Arg= 9 | -----END DSA PARAMETERS----- 10 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dsa512.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PARAMETERS----- 2 | MIGdAkEAnRtpjibb8isRcBmG9hnI+BnyGFOURgbQYlAzSwI8UjADizv5X9EkBk97 3 | TLqqQJv9luQ3M7stWtdaEUBmonZ9MQIVAPtT71C0QJIxVoZTeuiLIppJ+3GPAkEA 4 | gz6I5cWJc847bAFJv7PHnwrqRJHlMKrZvltftxDXibeOdPvPKR7rqCxUUbgQ3qDO 5 | L8wka5B33qJoplISogOdIA== 6 | -----END DSA PARAMETERS----- 7 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/dsap.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PARAMETERS----- 2 | MIGcAkEA+ZiKEvZmc9MtnaFZh4NiZ3oZS4J1PHvPrm9MXj5ntVheDPkdmBDTncya 3 | GAJcMjwsyB/GvLDGd6yGCw/8eF+09wIVAK3VagOxGd/Q4Af5NbxR5FB7CXEjAkA2 4 | t/q7HgVLi0KeKvcDG8BRl3wuy7bCvpjgtWiJc/tpvcuzeuAayH89UofjAGueKjXD 5 | ADiRffvSdhrNw5dkqdql 6 | -----END DSA PARAMETERS----- 7 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/oid.cnf: -------------------------------------------------------------------------------- 1 | 2.99999.1 SET.ex1 SET x509v3 extension 1 2 | 2.99999.2 SET.ex2 SET x509v3 extension 2 3 | 2.99999.3 SET.ex3 SET x509v3 extension 3 4 | 2.99999.4 SET.ex4 SET x509v3 extension 4 5 | 2.99999.5 SET.ex5 SET x509v3 extension 5 6 | 2.99999.6 SET.ex6 SET x509v3 extension 6 7 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/pca-cert.srl: -------------------------------------------------------------------------------- 1 | 07 2 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/pca-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQCdoWk/3+WcMlfjIrkg40ketmnQaEogQe1LLcuOJV6rKfUSAsPg 3 | wgsabJ/wn8TxA1yy3eKJbFl3OiUXMRsp22Jp85PmemiDzyUIStwk72qhp1imbANZ 4 | vlmlCFKiQrjUyuDfu4TABmn+kkt3vR1YBEOGt+IFye1UBVSATVdRJ2UVhwIDAQAB 5 | AoGAba4fTtuap5l7/8ZsbE7Z1O32KJY4ZcOZukLOLUUhXxXduT+FTgGWujc0/rgc 6 | z9qYCLlNZHOouMYTgtSfYvuMuLZ11VIt0GYH+nRioLShE59Yy+zCRyC+gPigS1kz 7 | xvo14AsOIPYV14Tk/SsHyq6E0eTk7VzaIE197giiINUERPECQQDSKmtPTh/lRKw7 8 | HSZSM0I1mFWn/1zqrAbontRQY5w98QWIOe5qmzYyFbPXYT3d9BzlsMyhgiRNoBbD 9 | yvohSHXJAkEAwAHx6ezAZeWWzD5yXD36nyjpkVCw7Tk7TSmOceLJMWt1QcrCfqlS 10 | xA5jjpQ6Z8suU5DdtWAryM2sAir1WisYzwJAd6Zcx56jvAQ3xcPXsE6scBTVFzrj 11 | 7FqZ6E+cclPzfLQ+QQsyOBE7bpI6e/FJppY26XGZXo3YGzV8IGXrt40oOQJALETG 12 | h86EFXo3qGOFbmsDy4pdP5nBERCu8X1xUCSfintiD4c2DInxgS5oGclnJeMcjTvL 13 | QjQoJCX3UJCi/OUO1QJBAKgcDHWjMvt+l1pjJBsSEZ0HX9AAIIVx0RQmbFGS+F2Q 14 | hhu5l77WnnZOQ9vvhV5u7NPCUF9nhU3jh60qWWO8mkc= 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/pca-req.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBmjCCAQMCAQAwXDELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQx 3 | GjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRwwGgYDVQQDExNUZXN0IFBDQSAo 4 | MTAyNCBiaXQpMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdoWk/3+WcMlfj 5 | Irkg40ketmnQaEogQe1LLcuOJV6rKfUSAsPgwgsabJ/wn8TxA1yy3eKJbFl3OiUX 6 | MRsp22Jp85PmemiDzyUIStwk72qhp1imbANZvlmlCFKiQrjUyuDfu4TABmn+kkt3 7 | vR1YBEOGt+IFye1UBVSATVdRJ2UVhwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAEzz 8 | IG8NnfpnPTQSCN5zJhOfy6p9AcDyQzuJirYv1HR/qoYWalPh/U2uiK0lAim7qMcv 9 | wOlK3I7A8B7/4dLqvIqgtUj9b1WT8zIrnwdvJI4osLI2BY+c1pVlp174DHLMol1L 10 | Cl1e3N5BTm7lCitTYjuUhsw6hiA8IcdNKDo6sktV 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/privkey.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,BA26229A1653B7FF 4 | 5 | 6nhWG8PKhTPO/s3ZvjUa6226NlKdvPDZFsNXOOoSUs9ejxpb/aj5huhs6qRYzsz9 6 | Year47uaAZYhGD0vAagnNiBnYmjWEpN9G/wQxG7pgZThK1ZxDi63qn8aQ8UjuGHo 7 | F6RpnnBQIAnWTWqr/Qsybtc5EoNkrj/Cpx0OfbSr6gZsFBCxwX1R1hT3/mhJ45f3 8 | XMofY32Vdfx9/vtw1O7HmlHXQnXaqnbd9/nn1EpvFJG9+UjPoW7gV4jCOLuR4deE 9 | jS8hm+cpkwXmFtk3VGjT9tQXPpMv3JpYfBqgGQoMAJ5Toq0DWcHi6Wg08PsD8lgy 10 | vmTioPsRg+JGkJkJ8GnusgLpQdlQJbjzd7wGE6ElUFLfOxLo8bLlRHoriHNdWYhh 11 | JjY0LyeTkovcmWxVjImc6ZyBz5Ly4t0BYf1gq3OkjsV91Q1taBxnhiavfizqMCAf 12 | PPB3sLQnlXG77TOXkNxpqbZfEYrVZW2Nsqqdn8s07Uj4IMONZyq2odYKWFPMJBiM 13 | POYwXjMAOcmFMTHYsVlhcUJuV6LOuipw/FEbTtPH/MYMxLe4zx65dYo1rb4iLKLS 14 | gMtB0o/Wl4Xno3ZXh1ucicYnV2J7NpVcjVq+3SFiCRu2SrSkZHZ23EPS13Ec6fcz 15 | 8X/YGA2vTJ8MAOozAzQUwHQYvLk7bIoQVekqDq4p0AZQbhdspHpArCk0Ifqqzg/v 16 | Uyky/zZiQYanzDenTSRVI/8wac3olxpU8QvbySxYqmbkgq6bTpXJfYFQfnAttEsC 17 | dA4S5UFgyOPZluxCAM4yaJF3Ft6neutNwftuJQMbgCUi9vYg2tGdSw== 18 | -----END RSA PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/req.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBlzCCAVcCAQAwXjELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUx 3 | ITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEXMBUGA1UEAxMORXJp 4 | YyB0aGUgWW91bmcwge8wgaYGBSsOAwIMMIGcAkEA+ZiKEvZmc9MtnaFZh4NiZ3oZ 5 | S4J1PHvPrm9MXj5ntVheDPkdmBDTncyaGAJcMjwsyB/GvLDGd6yGCw/8eF+09wIV 6 | AK3VagOxGd/Q4Af5NbxR5FB7CXEjAkA2t/q7HgVLi0KeKvcDG8BRl3wuy7bCvpjg 7 | tWiJc/tpvcuzeuAayH89UofjAGueKjXDADiRffvSdhrNw5dkqdqlA0QAAkEAtUSo 8 | 84OekjitKGVjxLu0HvXck29pu+foad53vPKXAsuJdACj88BPqZ91Y9PIJf1GUh38 9 | CuiHWi7z3cEDfZCyCKAAMAkGBSsOAwIbBQADLwAwLAIUTg8amKVBE9oqC5B75dDQ 10 | Chy3LdQCFHKodGEj3LjuTzdm/RTe2KZL9Uzf 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/s1024key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXgIBAAKBgQCzEfU8E+ZGTGtHXV5XhvM2Lg32fXUIjydXb34BGVPX6oN7+aNV 3 | S9eWayvW/+9/vUb0aCqilJrpFesgItV2T8VhhjOE++XUz46uNpcMU7wHMEAXUufP 4 | pztpFm8ZEk2tFKvadkSSoN8lb11juvZVkSkPlB65pFhSe4QKSp6J4HrkYwIDAQAB 5 | AoGBAKy8jvb0Lzby8q11yNLf7+78wCVdYi7ugMHcYA1JVFK8+zb1WfSm44FLQo/0 6 | dSChAjgz36TTexeLODPYxleJndjVcOMVzsLJjSM8dLpXsTS4FCeMbhw2s2u+xqKY 7 | bbPWfk+HOTyJjfnkcC5Nbg44eOmruq0gSmBeUXVM5UntlTnxAkEA7TGCA3h7kx5E 8 | Bl4zl2pc3gPAGt+dyfk5Po9mGJUUXhF5p2zueGmYWW74TmOWB1kzt4QRdYMzFePq 9 | zfDNXEa1CwJBAMFErdY0xp0UJ13WwBbUTk8rujqQdHtjw0klhpbuKkjxu2hN0wwM 10 | 6p0D9qxF7JHaghqVRI0fAW/EE0OzdHMR9QkCQQDNR26dMFXKsoPu+vItljj/UEGf 11 | QG7gERiQ4yxaFBPHgdpGo0kT31eh9x9hQGDkxTe0GNG/YSgCRvm8+C3TMcKXAkBD 12 | dhGn36wkUFCddMSAM4NSJ1VN8/Z0y5HzCmI8dM3VwGtGMUQlxKxwOl30LEQzdS5M 13 | 0SWojNYXiT2gOBfBwtbhAkEAhafl5QEOIgUz+XazS/IlZ8goNKdDVfYgK3mHHjvv 14 | nY5G+AuGebdNkXJr4KSWxDcN+C2i47zuj4QXA16MAOandA== 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/s1024req.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBojCCAQsCAQAwZDELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQx 3 | GjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMSQwIgYDVQQDExtTZXJ2ZXIgdGVz 4 | dCBjZXJ0ICgxMDI0IGJpdCkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALMR 5 | 9TwT5kZMa0ddXleG8zYuDfZ9dQiPJ1dvfgEZU9fqg3v5o1VL15ZrK9b/73+9RvRo 6 | KqKUmukV6yAi1XZPxWGGM4T75dTPjq42lwxTvAcwQBdS58+nO2kWbxkSTa0Uq9p2 7 | RJKg3yVvXWO69lWRKQ+UHrmkWFJ7hApKnongeuRjAgMBAAEwDQYJKoZIhvcNAQEE 8 | BQADgYEAStHlk4pBbwiNeQ2/PKTPPXzITYC8Gn0XMbrU94e/6JIKiO7aArq9Espq 9 | nrBSvC14dHcNl6NNvnkEKdQ7hAkcACfBbnOXA/oQvMBd4GD78cH3k0jVDoVUEjil 10 | frLfWlckW6WzpTktt0ZPDdAjJCmKVh0ABHimi7Bo9FC3wIGIe5M= 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/s512-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBPAIBAAJBAJ+zw4Qnlf8SMVIPFe9GEcStgOY2Ww/dgNdhjeD8ckUJNP5VZkVD 3 | TGiXav6ooKXfX3j/7tdkuD8Ey2//Kv7+ue0CAwEAAQJAN6W31vDEP2DjdqhzCDDu 4 | OA4NACqoiFqyblo7yc2tM4h4xMbC3Yx5UKMN9ZkCtX0gzrz6DyF47bdKcWBzNWCj 5 | gQIhANEoojVt7hq+SQ6MCN6FTAysGgQf56Q3TYoJMoWvdiXVAiEAw3e3rc+VJpOz 6 | rHuDo6bgpjUAAXM+v3fcpsfZSNO6V7kCIQCtbVjanpUwvZkMI9by02oUk9taki3b 7 | PzPfAfNPYAbCJQIhAJXNQDWyqwn/lGmR11cqY2y9nZ1+5w3yHGatLrcDnQHxAiEA 8 | vnlEGo8K85u+KwIOimM48ZG8oTk7iFdkqLJR1utT3aU= 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/s512-req.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBGzCBxgIBADBjMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEa 3 | MBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxIzAhBgNVBAMTGlNlcnZlciB0ZXN0 4 | IGNlcnQgKDUxMiBiaXQpMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ+zw4Qnlf8S 5 | MVIPFe9GEcStgOY2Ww/dgNdhjeD8ckUJNP5VZkVDTGiXav6ooKXfX3j/7tdkuD8E 6 | y2//Kv7+ue0CAwEAATANBgkqhkiG9w0BAQQFAANBAAB+uQi+qwn6qRSHB8EUTvsm 7 | 5TNTHzYDeN39nyIbZNX2s0se3Srn2Bxft5YCwD3moFZ9QoyDHxE0h6qLX5yjD+8= 8 | -----END CERTIFICATE REQUEST----- 9 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/server.srl: -------------------------------------------------------------------------------- 1 | 01 2 | -------------------------------------------------------------------------------- /jni/external/openssl/apps/testCA.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBBzCBsgIBADBNMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEX 3 | MBUGA1UEChMOTWluY29tIFB0eSBMdGQxEDAOBgNVBAMTB1RFU1QgQ0EwXDANBgkq 4 | hkiG9w0BAQEFAANLADBIAkEAzW9brgA8efT2ODB+NrsflJZj3KKqKsm4OrXTRqfL 5 | VETj1ws/zCXl42XJAxdWQMCP0liKfc9Ut4xi1qCVI7N07wIDAQABoAAwDQYJKoZI 6 | hvcNAQEEBQADQQBjZZ42Det9Uw0AFwJy4ufUEy5Cv74pxBp5SZnljgHY+Az0Hs2S 7 | uNkIegr2ITX5azKi9nOkg9ZmsmGG13FIjiC/ 8 | -----END CERTIFICATE REQUEST----- 9 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/aes/README: -------------------------------------------------------------------------------- 1 | This is an OpenSSL-compatible version of AES (also called Rijndael). 2 | aes_core.c is basically the same as rijndael-alg-fst.c but with an 3 | API that looks like the rest of the OpenSSL symmetric cipher suite. 4 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/aes/asm/aes-586.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/aes/asm/aes-586.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/asn1/charmap.h: -------------------------------------------------------------------------------- 1 | /* Auto generated with chartype.pl script. 2 | * Mask of various character properties 3 | */ 4 | 5 | static const unsigned char char_type[] = { 6 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8 | 120, 0, 1,40, 0, 0, 0,16,16,16, 0,25,25,16,16,16, 9 | 16,16,16,16,16,16,16,16,16,16,16, 9, 9,16, 9,16, 10 | 0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, 11 | 16,16,16,16,16,16,16,16,16,16,16, 0, 1, 0, 0, 0, 12 | 0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, 13 | 16,16,16,16,16,16,16,16,16,16,16, 0, 0, 0, 0, 2 14 | }; 15 | 16 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bio/bio_lcl.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #if BIO_FLAGS_UPLINK==0 4 | /* Shortcut UPLINK calls on most platforms... */ 5 | #define UP_stdin stdin 6 | #define UP_stdout stdout 7 | #define UP_stderr stderr 8 | #define UP_fprintf fprintf 9 | #define UP_fgets fgets 10 | #define UP_fread fread 11 | #define UP_fwrite fwrite 12 | #undef UP_fsetmod 13 | #define UP_feof feof 14 | #define UP_fclose fclose 15 | 16 | #define UP_fopen fopen 17 | #define UP_fseek fseek 18 | #define UP_ftell ftell 19 | #define UP_fflush fflush 20 | #define UP_ferror ferror 21 | #ifdef _WIN32 22 | #define UP_fileno _fileno 23 | #define UP_open _open 24 | #define UP_read _read 25 | #define UP_write _write 26 | #define UP_lseek _lseek 27 | #define UP_close _close 28 | #else 29 | #define UP_fileno fileno 30 | #define UP_open open 31 | #define UP_read read 32 | #define UP_write write 33 | #define UP_lseek lseek 34 | #define UP_close close 35 | #endif 36 | #endif 37 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/README: -------------------------------------------------------------------------------- 1 | 2 | 3 | All assember in this directory are just version of the file 4 | crypto/bn/bn_asm.c. 5 | 6 | Quite a few of these files are just the assember output from gcc since on 7 | quite a few machines they are 2 times faster than the system compiler. 8 | 9 | For the x86, I have hand written assember because of the bad job all 10 | compilers seem to do on it. This normally gives a 2 time speed up in the RSA 11 | routines. 12 | 13 | For the DEC alpha, I also hand wrote the assember (except the division which 14 | is just the output from the C compiler pasted on the end of the file). 15 | On the 2 alpha C compilers I had access to, it was not possible to do 16 | 64b x 64b -> 128b calculations (both long and the long long data types 17 | were 64 bits). So the hand assember gives access to the 128 bit result and 18 | a 2 times speedup :-). 19 | 20 | There are 3 versions of assember for the HP PA-RISC. 21 | 22 | pa-risc.s is the origional one which works fine and generated using gcc :-) 23 | 24 | pa-risc2W.s and pa-risc2.s are 64 and 32-bit PA-RISC 2.0 implementations 25 | by Chris Ruemmler from HP (with some help from the HP C compiler). 26 | 27 | 28 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/armv4-gf2m.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/armv4-gf2m.S -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/armv4-gf2m.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/armv4-gf2m.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/ia64.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/ia64.S -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/s390x-gf2m.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/s390x-gf2m.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86-gf2m.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/x86-gf2m.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86.pl: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | 3 | push(@INC,"perlasm","../../perlasm"); 4 | require "x86asm.pl"; 5 | 6 | require("x86/mul_add.pl"); 7 | require("x86/mul.pl"); 8 | require("x86/sqr.pl"); 9 | require("x86/div.pl"); 10 | require("x86/add.pl"); 11 | require("x86/sub.pl"); 12 | require("x86/comba.pl"); 13 | 14 | &asm_init($ARGV[0],$0); 15 | 16 | &bn_mul_add_words("bn_mul_add_words"); 17 | &bn_mul_words("bn_mul_words"); 18 | &bn_sqr_words("bn_sqr_words"); 19 | &bn_div_words("bn_div_words"); 20 | &bn_add_words("bn_add_words"); 21 | &bn_sub_words("bn_sub_words"); 22 | &bn_mul_comba("bn_mul_comba8",8); 23 | &bn_mul_comba("bn_mul_comba4",4); 24 | &bn_sqr_comba("bn_sqr_comba8",8); 25 | &bn_sqr_comba("bn_sqr_comba4",4); 26 | 27 | &asm_finish(); 28 | 29 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86/div.pl: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | # x86 assember 3 | 4 | sub bn_div_words 5 | { 6 | local($name)=@_; 7 | 8 | &function_begin($name,""); 9 | &mov("edx",&wparam(0)); # 10 | &mov("eax",&wparam(1)); # 11 | &mov("ebx",&wparam(2)); # 12 | &div("ebx"); 13 | &function_end($name); 14 | } 15 | 1; 16 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86/f: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | # x86 assember 3 | 4 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86/sqr.pl: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | # x86 assember 3 | 4 | sub bn_sqr_words 5 | { 6 | local($name)=@_; 7 | 8 | &function_begin($name,""); 9 | 10 | &comment(""); 11 | $r="esi"; 12 | $a="edi"; 13 | $num="ebx"; 14 | 15 | &mov($r,&wparam(0)); # 16 | &mov($a,&wparam(1)); # 17 | &mov($num,&wparam(2)); # 18 | 19 | &and($num,0xfffffff8); # num / 8 20 | &jz(&label("sw_finish")); 21 | 22 | &set_label("sw_loop",0); 23 | for ($i=0; $i<32; $i+=4) 24 | { 25 | &comment("Round $i"); 26 | &mov("eax",&DWP($i,$a,"",0)); # *a 27 | # XXX 28 | &mul("eax"); # *a * *a 29 | &mov(&DWP($i*2,$r,"",0),"eax"); # 30 | &mov(&DWP($i*2+4,$r,"",0),"edx");# 31 | } 32 | 33 | &comment(""); 34 | &add($a,32); 35 | &add($r,64); 36 | &sub($num,8); 37 | &jnz(&label("sw_loop")); 38 | 39 | &set_label("sw_finish",0); 40 | &mov($num,&wparam(2)); # get num 41 | &and($num,7); 42 | &jz(&label("sw_end")); 43 | 44 | for ($i=0; $i<7; $i++) 45 | { 46 | &comment("Tail Round $i"); 47 | &mov("eax",&DWP($i*4,$a,"",0)); # *a 48 | # XXX 49 | &mul("eax"); # *a * *a 50 | &mov(&DWP($i*8,$r,"",0),"eax"); # 51 | &dec($num) if ($i != 7-1); 52 | &mov(&DWP($i*8+4,$r,"",0),"edx"); 53 | &jz(&label("sw_end")) if ($i != 7-1); 54 | } 55 | &set_label("sw_end",0); 56 | 57 | &function_end($name); 58 | } 59 | 60 | 1; 61 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86_64-gcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/x86_64-gcc.c -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/asm/x86_64-gf2m.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/bn/asm/x86_64-gf2m.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/bn.mul: -------------------------------------------------------------------------------- 1 | We need 2 | 3 | * bn_mul_comba8 4 | * bn_mul_comba4 5 | * bn_mul_normal 6 | * bn_mul_recursive 7 | 8 | * bn_sqr_comba8 9 | * bn_sqr_comba4 10 | bn_sqr_normal -> BN_sqr 11 | * bn_sqr_recursive 12 | 13 | * bn_mul_low_recursive 14 | * bn_mul_low_normal 15 | * bn_mul_high 16 | 17 | * bn_mul_part_recursive # symetric but not power of 2 18 | 19 | bn_mul_asymetric_recursive # uneven, but do the chop up. 20 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/divtest.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | static int Rand(n) 5 | { 6 | unsigned char x[2]; 7 | RAND_pseudo_bytes(x,2); 8 | return (x[0] + 2*x[1]); 9 | } 10 | 11 | static void bug(char *m, BIGNUM *a, BIGNUM *b) 12 | { 13 | printf("%s!\na=",m); 14 | BN_print_fp(stdout, a); 15 | printf("\nb="); 16 | BN_print_fp(stdout, b); 17 | printf("\n"); 18 | fflush(stdout); 19 | } 20 | 21 | main() 22 | { 23 | BIGNUM *a=BN_new(), *b=BN_new(), *c=BN_new(), *d=BN_new(), 24 | *C=BN_new(), *D=BN_new(); 25 | BN_RECP_CTX *recp=BN_RECP_CTX_new(); 26 | BN_CTX *ctx=BN_CTX_new(); 27 | 28 | for(;;) { 29 | BN_pseudo_rand(a,Rand(),0,0); 30 | BN_pseudo_rand(b,Rand(),0,0); 31 | if (BN_is_zero(b)) continue; 32 | 33 | BN_RECP_CTX_set(recp,b,ctx); 34 | if (BN_div(C,D,a,b,ctx) != 1) 35 | bug("BN_div failed",a,b); 36 | if (BN_div_recp(c,d,a,recp,ctx) != 1) 37 | bug("BN_div_recp failed",a,b); 38 | else if (BN_cmp(c,C) != 0 || BN_cmp(c,C) != 0) 39 | bug("mismatch",a,b); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/bn/exp.c: -------------------------------------------------------------------------------- 1 | /* unused */ 2 | 3 | #include 4 | #include 5 | #include "bn_lcl.h" 6 | 7 | #define SIZE 256 8 | #define NUM (8*8*8) 9 | #define MOD (8*8*8*8*8) 10 | 11 | main(argc,argv) 12 | int argc; 13 | char *argv[]; 14 | { 15 | BN_CTX ctx; 16 | BIGNUM a,b,c,r,rr,t,l; 17 | int j,i,size=SIZE,num=NUM,mod=MOD; 18 | char *start,*end; 19 | BN_MONT_CTX mont; 20 | double d,md; 21 | 22 | BN_MONT_CTX_init(&mont); 23 | BN_CTX_init(&ctx); 24 | BN_init(&a); 25 | BN_init(&b); 26 | BN_init(&c); 27 | BN_init(&r); 28 | 29 | start=ms_time_new(); 30 | end=ms_time_new(); 31 | while (size <= 1024*8) 32 | { 33 | BN_rand(&a,size,0,0); 34 | BN_rand(&b,size,1,0); 35 | BN_rand(&c,size,0,1); 36 | 37 | BN_mod(&a,&a,&c,&ctx); 38 | 39 | ms_time_get(start); 40 | for (i=0; i<10; i++) 41 | BN_MONT_CTX_set(&mont,&c,&ctx); 42 | ms_time_get(end); 43 | md=ms_time_diff(start,end); 44 | 45 | ms_time_get(start); 46 | for (i=0; i 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | static int rle_compress_block(COMP_CTX *ctx, unsigned char *out, 8 | unsigned int olen, unsigned char *in, unsigned int ilen); 9 | static int rle_expand_block(COMP_CTX *ctx, unsigned char *out, 10 | unsigned int olen, unsigned char *in, unsigned int ilen); 11 | 12 | static COMP_METHOD rle_method={ 13 | NID_rle_compression, 14 | LN_rle_compression, 15 | NULL, 16 | NULL, 17 | rle_compress_block, 18 | rle_expand_block, 19 | NULL, 20 | NULL, 21 | }; 22 | 23 | COMP_METHOD *COMP_rle(void) 24 | { 25 | return(&rle_method); 26 | } 27 | 28 | static int rle_compress_block(COMP_CTX *ctx, unsigned char *out, 29 | unsigned int olen, unsigned char *in, unsigned int ilen) 30 | { 31 | /* int i; */ 32 | 33 | if (ilen == 0 || olen < (ilen-1)) 34 | { 35 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ 36 | return(-1); 37 | } 38 | 39 | *(out++)=0; 40 | memcpy(out,in,ilen); 41 | return(ilen+1); 42 | } 43 | 44 | static int rle_expand_block(COMP_CTX *ctx, unsigned char *out, 45 | unsigned int olen, unsigned char *in, unsigned int ilen) 46 | { 47 | int i; 48 | 49 | if (olen < (ilen-1)) 50 | { 51 | /* ZZZZZZZZZZZZZZZZZZZZZZ */ 52 | return(-1); 53 | } 54 | 55 | i= *(in++); 56 | if (i == 0) 57 | { 58 | memcpy(out,in,ilen-1); 59 | } 60 | return(ilen-1); 61 | } 62 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/DES.pm: -------------------------------------------------------------------------------- 1 | package DES; 2 | 3 | require Exporter; 4 | require DynaLoader; 5 | @ISA = qw(Exporter DynaLoader); 6 | # Items to export into callers namespace by default 7 | # (move infrequently used names to @EXPORT_OK below) 8 | @EXPORT = qw( 9 | ); 10 | # Other items we are prepared to export if requested 11 | @EXPORT_OK = qw( 12 | crypt 13 | ); 14 | 15 | # Preloaded methods go here. Autoload methods go after __END__, and are 16 | # processed by the autosplit program. 17 | bootstrap DES; 18 | 1; 19 | __END__ 20 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/Imakefile: -------------------------------------------------------------------------------- 1 | # This Imakefile has not been tested for a while but it should still 2 | # work when placed in the correct directory in the kerberos v 4 distribution 3 | 4 | SRCS= cbc_cksm.c cbc_enc.c ecb_enc.c pcbc_enc.c \ 5 | qud_cksm.c rand_key.c read_pwd.c set_key.c str2key.c \ 6 | enc_read.c enc_writ.c fcrypt.c cfb_enc.c \ 7 | ecb3_enc.c ofb_enc.c ofb64enc.c 8 | 9 | OBJS= cbc_cksm.o cbc_enc.o ecb_enc.o pcbc_enc.o \ 10 | qud_cksm.o rand_key.o read_pwd.o set_key.o str2key.o \ 11 | enc_read.o enc_writ.o fcrypt.o cfb_enc.o \ 12 | ecb3_enc.o ofb_enc.o ofb64enc.o 13 | 14 | GENERAL=COPYRIGHT FILES INSTALL Imakefile README VERSION makefile times \ 15 | vms.com KERBEROS 16 | DES= des.c des.man 17 | TESTING=destest.c speed.c rpw.c 18 | LIBDES= des_crypt.man des.h des_locl.h podd.h sk.h spr.h 19 | 20 | PERL= des.pl testdes.pl doIP doPC1 doPC2 PC1 PC2 shifts.pl 21 | 22 | CODE= $(GENERAL) $(DES) $(TESTING) $(SRCS) $(LIBDES) $(PERL) 23 | 24 | SRCDIR=$(SRCTOP)/lib/des 25 | 26 | DBG= -O 27 | INCLUDE= -I$(SRCDIR) 28 | CC= cc 29 | 30 | library_obj_rule() 31 | 32 | install_library_target(des,$(OBJS),$(SRCS),) 33 | 34 | test(destest,libdes.a,) 35 | test(rpw,libdes.a,) 36 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/makefile.bc: -------------------------------------------------------------------------------- 1 | # 2 | # Origional BC Makefile from Teun 3 | # 4 | # 5 | CC = bcc 6 | TLIB = tlib /0 /C 7 | # note: the -3 flag produces code for 386, 486, Pentium etc; omit it for 286s 8 | OPTIMIZE= -3 -O2 9 | #WINDOWS= -W 10 | CFLAGS = -c -ml -d $(OPTIMIZE) $(WINDOWS) -DMSDOS 11 | LFLAGS = -ml $(WINDOWS) 12 | 13 | .c.obj: 14 | $(CC) $(CFLAGS) $*.c 15 | 16 | .obj.exe: 17 | $(CC) $(LFLAGS) -e$*.exe $*.obj libdes.lib 18 | 19 | all: $(LIB) destest.exe rpw.exe des.exe speed.exe 20 | 21 | # "make clean": use a directory containing only libdes .exe and .obj files... 22 | clean: 23 | del *.exe 24 | del *.obj 25 | del libdes.lib 26 | del libdes.rsp 27 | 28 | OBJS= cbc_cksm.obj cbc_enc.obj ecb_enc.obj pcbc_enc.obj \ 29 | qud_cksm.obj rand_key.obj set_key.obj str2key.obj \ 30 | enc_read.obj enc_writ.obj fcrypt.obj cfb_enc.obj \ 31 | ecb3_enc.obj ofb_enc.obj cbc3_enc.obj read_pwd.obj\ 32 | cfb64enc.obj ofb64enc.obj ede_enc.obj cfb64ede.obj\ 33 | ofb64ede.obj supp.obj 34 | 35 | LIB= libdes.lib 36 | 37 | $(LIB): $(OBJS) 38 | del $(LIB) 39 | makersp "+%s &\n" &&| 40 | $(OBJS) 41 | | >libdes.rsp 42 | $(TLIB) libdes.lib @libdes.rsp,nul 43 | del libdes.rsp 44 | 45 | destest.exe: destest.obj libdes.lib 46 | rpw.exe: rpw.obj libdes.lib 47 | speed.exe: speed.obj libdes.lib 48 | des.exe: des.obj libdes.lib 49 | 50 | 51 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/t/test: -------------------------------------------------------------------------------- 1 | #!./perl 2 | 3 | BEGIN { push(@INC, qw(../../../lib ../../lib ../lib lib)); } 4 | 5 | use DES; 6 | 7 | $key='00000000'; 8 | $ks=DES::set_key($key); 9 | @a=split(//,$ks); 10 | foreach (@a) { printf "%02x-",ord($_); } 11 | print "\n"; 12 | 13 | 14 | $key=DES::random_key(); 15 | print "($_)\n"; 16 | @a=split(//,$key); 17 | foreach (@a) { printf "%02x-",ord($_); } 18 | print "\n"; 19 | $str="this is and again into the breach"; 20 | ($k1,$k2)=DES::string_to_2keys($str); 21 | @a=split(//,$k1); 22 | foreach (@a) { printf "%02x-",ord($_); } 23 | print "\n"; 24 | @a=split(//,$k2); 25 | foreach (@a) { printf "%02x-",ord($_); } 26 | print "\n"; 27 | 28 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/486-50.sol: -------------------------------------------------------------------------------- 1 | Solaris 2.4, 486 50mhz, gcc 2.6.3 2 | options des ecb/s 3 | 16 r2 i 43552.51 100.0% 4 | 16 r1 i 43487.45 99.9% 5 | 16 c p 43003.23 98.7% 6 | 16 r2 p 42339.00 97.2% 7 | 16 c i 41900.91 96.2% 8 | 16 r1 p 41360.64 95.0% 9 | 4 c i 38728.48 88.9% 10 | 4 c p 38225.63 87.8% 11 | 4 r1 i 38085.79 87.4% 12 | 4 r2 i 37825.64 86.9% 13 | 4 r2 p 34611.00 79.5% 14 | 4 r1 p 31802.00 73.0% 15 | -DDES_UNROLL -DDES_RISC2 16 | 17 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/586-100.lnx: -------------------------------------------------------------------------------- 1 | Pentium 100 2 | Linux 2 kernel 3 | gcc 2.7.0 -O3 -fomit-frame-pointer 4 | No X server running, just a console, it makes the top speed jump from 151,000 5 | to 158,000 :-). 6 | options des ecb/s 7 | assember 281000.00 177.1% 8 | 16 r1 p 158667.40 100.0% 9 | 16 r1 i 148471.70 93.6% 10 | 16 r2 p 143961.80 90.7% 11 | 16 r2 i 141689.20 89.3% 12 | 4 r1 i 140100.00 88.3% 13 | 4 r2 i 134049.40 84.5% 14 | 16 c i 124145.20 78.2% 15 | 16 c p 121584.20 76.6% 16 | 4 c i 118116.00 74.4% 17 | 4 r2 p 117977.90 74.4% 18 | 4 c p 114971.40 72.5% 19 | 4 r1 p 114578.40 72.2% 20 | -DDES_UNROLL -DDES_RISC1 -DDES_PTR 21 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/686-200.fre: -------------------------------------------------------------------------------- 1 | Pentium 100 2 | Free BSD 2.1.5 kernel 3 | gcc 2.7.2.2 -O3 -fomit-frame-pointer 4 | options des ecb/s 5 | assember 578000.00 133.1% 6 | 16 r2 i 434454.80 100.0% 7 | 16 r1 i 433621.43 99.8% 8 | 16 r2 p 431375.69 99.3% 9 | 4 r1 i 423722.30 97.5% 10 | 4 r2 i 422399.40 97.2% 11 | 16 r1 p 421739.40 97.1% 12 | 16 c i 399027.94 91.8% 13 | 16 c p 372251.70 85.7% 14 | 4 c i 365118.35 84.0% 15 | 4 c p 352880.51 81.2% 16 | 4 r2 p 255104.90 58.7% 17 | 4 r1 p 251289.18 57.8% 18 | -DDES_UNROLL -DDES_RISC2 19 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/aix.cc: -------------------------------------------------------------------------------- 1 | From: Paco Garcia 2 | 3 | This machine is a Bull Estrella Minitower Model MT604-100 4 | Processor : PPC604 5 | P.Speed : 100Mhz 6 | Data/Instr Cache : 16 K 7 | L2 Cache : 256 K 8 | PCI BUS Speed : 33 Mhz 9 | TransfRate PCI : 132 MB/s 10 | Memory : 96 MB 11 | 12 | options des ecb/s 13 | 4 c p 275118.61 100.0% 14 | 4 c i 273545.07 99.4% 15 | 4 r2 p 270441.02 98.3% 16 | 4 r1 p 253052.15 92.0% 17 | 4 r2 i 240842.97 87.5% 18 | 4 r1 i 240556.66 87.4% 19 | 16 c i 224603.99 81.6% 20 | 16 c p 224483.98 81.6% 21 | 16 r2 p 215691.19 78.4% 22 | 16 r1 p 208332.83 75.7% 23 | 16 r1 i 199206.50 72.4% 24 | 16 r2 i 198963.70 72.3% 25 | -DDES_PTR 26 | 27 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/alpha.cc: -------------------------------------------------------------------------------- 1 | cc -O2 2 | DES_LONG is 'unsigned int' 3 | 4 | options des ecb/s 5 | 4 r2 p 181146.14 100.0% 6 | 16 r2 p 172102.94 95.0% 7 | 4 r2 i 165424.11 91.3% 8 | 16 c p 160468.64 88.6% 9 | 4 c p 156653.59 86.5% 10 | 4 c i 155245.18 85.7% 11 | 4 r1 p 154729.68 85.4% 12 | 16 r2 i 154137.69 85.1% 13 | 16 r1 p 152357.96 84.1% 14 | 16 c i 148743.91 82.1% 15 | 4 r1 i 146695.59 81.0% 16 | 16 r1 i 144961.00 80.0% 17 | -DDES_RISC2 -DDES_PTR 18 | 19 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/hpux.cc: -------------------------------------------------------------------------------- 1 | HPUX 10 - 9000/887 - cc -D_HPUX_SOURCE -Aa +ESlit +O2 -Wl,-a,archive 2 | 3 | options des ecb/s 4 | 16 c i 149448.90 100.0% 5 | 4 c i 145861.79 97.6% 6 | 16 r2 i 141710.96 94.8% 7 | 16 r1 i 139455.33 93.3% 8 | 4 r2 i 138800.00 92.9% 9 | 4 r1 i 136692.65 91.5% 10 | 16 r2 p 110228.17 73.8% 11 | 16 r1 p 109397.07 73.2% 12 | 16 c p 109209.89 73.1% 13 | 4 c p 108014.71 72.3% 14 | 4 r2 p 107873.88 72.2% 15 | 4 r1 p 107685.83 72.1% 16 | -DDES_UNROLL 17 | 18 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/sparc.gcc: -------------------------------------------------------------------------------- 1 | solaris 2.5.1 - sparc 10 50mhz - gcc 2.7.2 2 | 3 | options des ecb/s 4 | 16 c i 124382.70 100.0% 5 | 4 c i 118884.68 95.6% 6 | 16 c p 112261.20 90.3% 7 | 16 r2 i 111777.10 89.9% 8 | 16 r2 p 108896.30 87.5% 9 | 16 r1 p 108791.59 87.5% 10 | 4 c p 107290.10 86.3% 11 | 4 r1 p 104583.80 84.1% 12 | 16 r1 i 104206.20 83.8% 13 | 4 r2 p 103709.80 83.4% 14 | 4 r2 i 98306.43 79.0% 15 | 4 r1 i 91525.80 73.6% 16 | -DDES_UNROLL 17 | 18 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/times/usparc.cc: -------------------------------------------------------------------------------- 1 | solaris 2.5.1 usparc 167mhz?? - SC4.0 cc -fast -Xa -xO5 2 | 3 | For the ultra sparc, SunC 4.0 cc -fast -Xa -xO5, running 'des_opts' 4 | gives a speed of 475,000 des/s while 'speed' gives 417,000 des/s. 5 | I believe the difference is tied up in optimisation that the compiler 6 | is able to perform when the code is 'inlined'. For 'speed', the DES 7 | routines are being linked from a library. I'll record the higher 8 | speed since if performance is everything, you can always inline 9 | 'des_enc.c'. 10 | 11 | [ 16-Jan-06 - I've been playing with the 12 | '-xtarget=ultra -xarch=v8plus -Xa -xO5 -Xa' 13 | and while it makes the des_opts numbers much slower, it makes the 14 | actual 'speed' numbers look better which is a realistic version of 15 | using the libraries. ] 16 | 17 | options des ecb/s 18 | 16 r1 p 475516.90 100.0% 19 | 16 r2 p 439388.10 92.4% 20 | 16 c i 427001.40 89.8% 21 | 16 c p 419516.50 88.2% 22 | 4 r2 p 409491.70 86.1% 23 | 4 r1 p 404266.90 85.0% 24 | 4 c p 398121.00 83.7% 25 | 4 c i 370588.40 77.9% 26 | 4 r1 i 362742.20 76.3% 27 | 16 r2 i 331275.50 69.7% 28 | 16 r1 i 324730.60 68.3% 29 | 4 r2 i 63535.10 13.4% <-- very very weird, must be cache problems. 30 | -DDES_UNROLL -DDES_RISC1 -DDES_PTR 31 | 32 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/des/typemap: -------------------------------------------------------------------------------- 1 | # 2 | # DES SECTION 3 | # 4 | deschar * T_DESCHARP 5 | des_cblock * T_CBLOCK 6 | des_cblock T_CBLOCK 7 | des_key_schedule T_SCHEDULE 8 | des_key_schedule * T_SCHEDULE 9 | 10 | INPUT 11 | T_CBLOCK 12 | $var=(des_cblock *)SvPV($arg,len); 13 | if (len < DES_KEY_SZ) 14 | { 15 | croak(\"$var needs to be at least %u bytes long\",DES_KEY_SZ); 16 | } 17 | 18 | T_SCHEDULE 19 | $var=(des_key_schedule *)SvPV($arg,len); 20 | if (len < DES_SCHEDULE_SZ) 21 | { 22 | croak(\"$var needs to be at least %u bytes long\", 23 | DES_SCHEDULE_SZ); 24 | } 25 | 26 | OUTPUT 27 | T_CBLOCK 28 | sv_setpvn($arg,(char *)$var,DES_KEY_SZ); 29 | 30 | T_SCHEDULE 31 | sv_setpvn($arg,(char *)$var,DES_SCHEDULE_SZ); 32 | 33 | T_DESCHARP 34 | sv_setpvn($arg,(char *)$var,len); 35 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dh/dh1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIGHAoGBAJf2QmHKtQXdKCjhPx1ottPb0PMTBH9A6FbaWMsTuKG/K3g6TG1Z1fkq 3 | /Gz/PWk/eLI9TzFgqVAuPvr3q14a1aZeVUMTgo2oO5/y2UHe6VaJ+trqCTat3xlx 4 | /mNbIK9HA2RgPC3gWfVLZQrY+gz3ASHHR5nXWHEyvpuZm7m3h+irAgEC 5 | -----END DH PARAMETERS----- 6 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dh/dh192.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MB4CGQDUoLoCULb9LsYm5+/WN992xxbiLQlEuIsCAQM= 3 | -----END DH PARAMETERS----- 4 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dh/dh2048.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIIBCAKCAQEA7ZKJNYJFVcs7+6J2WmkEYb8h86tT0s0h2v94GRFS8Q7B4lW9aG9o 3 | AFO5Imov5Jo0H2XMWTKKvbHbSe3fpxJmw/0hBHAY8H/W91hRGXKCeyKpNBgdL8sh 4 | z22SrkO2qCnHJ6PLAMXy5fsKpFmFor2tRfCzrfnggTXu2YOzzK7q62bmqVdmufEo 5 | pT8igNcLpvZxk5uBDvhakObMym9mX3rAEBoe8PwttggMYiiw7NuJKO4MqD1llGkW 6 | aVM8U2ATsCun1IKHrRxynkE1/MJ86VHeYYX8GZt2YA8z+GuzylIOKcMH6JAWzMwA 7 | Gbatw6QwizOhr9iMjZ0B26TE3X8LvW84wwIBAg== 8 | -----END DH PARAMETERS----- 9 | -----BEGIN DH PARAMETERS----- 10 | MIIBCAKCAQEArtA3w73zP6Lu3EOQtwogiXt3AXXpuS6yD4BhzNS1pZFyPHk0/an5 11 | 8ydEkPhQZHKDW+BZJxxPLANaTudWo2YT8TgtvUdN6KSgMiEi6McwqDw+SADuvW+F 12 | SKUYFxG6VFIxyEP6xBdf+vhJxEDbRG2EYsHDRRtJ76gp9cSKTHusf2R+4AAVGqnt 13 | gRAbNqtcOar/7FSj+Pl8G3v0Bty0LcCSpbqgYlnv6z+rErQmmC6PPvSz97TDMCok 14 | yKpCE9hFA1zkqK3TH4FmFvGeIaXJUIBZf4mArWuBTjWFW3nmhESRUn1VK3K3x42N 15 | a5k6c2+EhrMFiLjxuH6JZoqL0/E93FF9SwIBAg== 16 | -----END DH PARAMETERS----- 17 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dh/dh4096.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIICCAKCAgEA/urRnb6vkPYc/KEGXWnbCIOaKitq7ySIq9dTH7s+Ri59zs77zty7 3 | vfVlSe6VFTBWgYjD2XKUFmtqq6CqXMhVX5ElUDoYDpAyTH85xqNFLzFC7nKrff/H 4 | TFKNttp22cZE9V0IPpzedPfnQkE7aUdmF9JnDyv21Z/818O93u1B4r0szdnmEvEF 5 | bKuIxEHX+bp0ZR7RqE1AeifXGJX3d6tsd2PMAObxwwsv55RGkn50vHO4QxtTARr1 6 | rRUV5j3B3oPMgC7Offxx+98Xn45B1/G0Prp11anDsR1PGwtaCYipqsvMwQUSJtyE 7 | EOQWk+yFkeMe4vWv367eEi0Sd/wnC+TSXBE3pYvpYerJ8n1MceI5GQTdarJ77OW9 8 | bGTHmxRsLSCM1jpLdPja5jjb4siAa6EHc4qN9c/iFKS3PQPJEnX7pXKBRs5f7AF3 9 | W3RIGt+G9IVNZfXaS7Z/iCpgzgvKCs0VeqN38QsJGtC1aIkwOeyjPNy2G6jJ4yqH 10 | ovXYt/0mc00vCWeSNS1wren0pR2EiLxX0ypjjgsU1mk/Z3b/+zVf7fZSIB+nDLjb 11 | NPtUlJCVGnAeBK1J1nG3TQicqowOXoM6ISkdaXj5GPJdXHab2+S7cqhKGv5qC7rR 12 | jT6sx7RUr0CNTxzLI7muV2/a4tGmj0PSdXQdsZ7tw7gbXlaWT1+MM2MCAQI= 13 | -----END DH PARAMETERS----- 14 | 15 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dh/dh512.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MEYCQQDaWDwW2YUiidDkr3VvTMqS3UvlM7gE+w/tlO+cikQD7VdGUNNpmdsp13Yn 3 | a6LT1BLiGPTdHghM9tgAPnxHdOgzAgEC 4 | -----END DH PARAMETERS----- 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dsa/README: -------------------------------------------------------------------------------- 1 | The stuff in here is based on patches supplied to me by 2 | Steven Schoch to do DSS. 3 | I have since modified a them a little but a debt of gratitude 4 | is due for doing the initial work. 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/dso/README: -------------------------------------------------------------------------------- 1 | NOTES 2 | ----- 3 | 4 | I've checked out HPUX (well, version 11 at least) and shl_t is 5 | a pointer type so it's safe to use in the way it has been in 6 | dso_dl.c. On the other hand, HPUX11 support dlfcn too and 7 | according to their man page, prefer developers to move to that. 8 | I'll leave Richard's changes there as I guess dso_dl is needed 9 | for HPUX10.20. 10 | 11 | There is now a callback scheme in place where filename conversion can 12 | (a) be turned off altogether through the use of the 13 | DSO_FLAG_NO_NAME_TRANSLATION flag, 14 | (b) be handled by default using the default DSO_METHOD's converter 15 | (c) overriden per-DSO by setting the override callback 16 | (d) a mix of (b) and (c) - eg. implement an override callback that; 17 | (i) checks if we're win32 (if(strstr(dso->meth->name, "win32")....) 18 | and if so, convert "blah" into "blah32.dll" (the default is 19 | otherwise to make it "blah.dll"). 20 | (ii) default to the normal behaviour - we're not on win32, eg. 21 | finish with (return dso->meth->dso_name_converter(dso,NULL)). 22 | 23 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* crypto/ebcdic.h */ 2 | 3 | #ifndef HEADER_EBCDIC_H 4 | #define HEADER_EBCDIC_H 5 | 6 | #include 7 | 8 | /* Avoid name clashes with other applications */ 9 | #define os_toascii _openssl_os_toascii 10 | #define os_toebcdic _openssl_os_toebcdic 11 | #define ebcdic2ascii _openssl_ebcdic2ascii 12 | #define ascii2ebcdic _openssl_ascii2ebcdic 13 | 14 | extern const unsigned char os_toascii[256]; 15 | extern const unsigned char os_toebcdic[256]; 16 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 17 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/evp/m_wp.c: -------------------------------------------------------------------------------- 1 | /* crypto/evp/m_wp.c */ 2 | 3 | #include 4 | #include "cryptlib.h" 5 | 6 | #ifndef OPENSSL_NO_WHIRLPOOL 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "evp_locl.h" 13 | 14 | static int init(EVP_MD_CTX *ctx) 15 | { return WHIRLPOOL_Init(ctx->md_data); } 16 | 17 | static int update(EVP_MD_CTX *ctx,const void *data,size_t count) 18 | { return WHIRLPOOL_Update(ctx->md_data,data,count); } 19 | 20 | static int final(EVP_MD_CTX *ctx,unsigned char *md) 21 | { return WHIRLPOOL_Final(md,ctx->md_data); } 22 | 23 | static const EVP_MD whirlpool_md= 24 | { 25 | NID_whirlpool, 26 | 0, 27 | WHIRLPOOL_DIGEST_LENGTH, 28 | 0, 29 | init, 30 | update, 31 | final, 32 | NULL, 33 | NULL, 34 | EVP_PKEY_NULL_method, 35 | WHIRLPOOL_BBLOCK/8, 36 | sizeof(EVP_MD *)+sizeof(WHIRLPOOL_CTX), 37 | }; 38 | 39 | const EVP_MD *EVP_whirlpool(void) 40 | { 41 | return(&whirlpool_md); 42 | } 43 | #endif 44 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/lhash/num.pl: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | 3 | #node 10 -> 4 4 | 5 | while (<>) 6 | { 7 | next unless /^node/; 8 | chop; 9 | @a=split; 10 | $num{$a[3]}++; 11 | } 12 | 13 | @a=sort {$a <=> $b } keys %num; 14 | foreach (0 .. $a[$#a]) 15 | { 16 | printf "%4d:%4d\n",$_,$num{$_}; 17 | } 18 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/modes/asm/ghash-armv4.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/modes/asm/ghash-armv4.S -------------------------------------------------------------------------------- /jni/external/openssl/crypto/modes/asm/ghash-armv4.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/modes/asm/ghash-armv4.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/modes/asm/ghash-x86.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/modes/asm/ghash-x86.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/objects/objects.README: -------------------------------------------------------------------------------- 1 | objects.txt syntax 2 | ------------------ 3 | 4 | To cover all the naming hacks that were previously in objects.h needed some 5 | kind of hacks in objects.txt. 6 | 7 | The basic syntax for adding an object is as follows: 8 | 9 | 1 2 3 4 : shortName : Long Name 10 | 11 | If the long name doesn't contain spaces, or no short name 12 | exists, the long name is used as basis for the base name 13 | in C. Otherwise, the short name is used. 14 | 15 | The base name (let's call it 'base') will then be used to 16 | create the C macros SN_base, LN_base, NID_base and OBJ_base. 17 | 18 | Note that if the base name contains spaces, dashes or periods, 19 | those will be converte to underscore. 20 | 21 | Then there are some extra commands: 22 | 23 | !Alias foo 1 2 3 4 24 | 25 | This juts makes a name foo for an OID. The C macro 26 | OBJ_foo will be created as a result. 27 | 28 | !Cname foo 29 | 30 | This makes sure that the name foo will be used as base name 31 | in C. 32 | 33 | !module foo 34 | 1 2 3 4 : shortName : Long Name 35 | !global 36 | 37 | The !module command was meant to define a kind of modularity. 38 | What it does is to make sure the module name is prepended 39 | to the base name. !global turns this off. This construction 40 | is not recursive. 41 | 42 | Lines starting with # are treated as comments, as well as any line starting 43 | with ! and not matching the commands above. 44 | 45 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pem/message: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVACY-ENHANCED MESSAGE----- 2 | Proc-Type: 4,ENCRYPTED 3 | Proc-Type: 4,MIC-ONLY 4 | Proc-Type: 4,MIC-CLEAR 5 | Content-Domain: RFC822 6 | DEK-Info: DES-CBC,0123456789abcdef 7 | Originator-Certificate 8 | xxxx 9 | Issuer-Certificate 10 | xxxx 11 | MIC-Info: RSA-MD5,RSA, 12 | xxxx 13 | 14 | 15 | -----END PRIVACY-ENHANCED MESSAGE----- 16 | 17 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pem/pkcs7.lis: -------------------------------------------------------------------------------- 1 | 21 0:d=0 hl=2 l= 0 cons: univ: SEQUENCE 2 | 00 2:d=0 hl=2 l= 9 prim: univ: OBJECT_IDENTIFIER :pkcs-7-signedData 3 | 21 13:d=0 hl=2 l= 0 cons: cont: 00 # explicit tag 4 | 21 15:d=0 hl=2 l= 0 cons: univ: SEQUENCE 5 | 00 17:d=0 hl=2 l= 1 prim: univ: INTEGER # version 6 | 20 20:d=0 hl=2 l= 0 cons: univ: SET 7 | 21 22:d=0 hl=2 l= 0 cons: univ: SEQUENCE 8 | 00 24:d=0 hl=2 l= 9 prim: univ: OBJECT_IDENTIFIER :pkcs-7-data 9 | 00 35:d=0 hl=2 l= 0 prim: univ: EOC 10 | 21 37:d=0 hl=2 l= 0 cons: cont: 00 # cert tag 11 | 20 39:d=0 hl=4 l=545 cons: univ: SEQUENCE 12 | 20 588:d=0 hl=4 l=524 cons: univ: SEQUENCE 13 | 00 1116:d=0 hl=2 l= 0 prim: univ: EOC 14 | 21 1118:d=0 hl=2 l= 0 cons: cont: 01 # crl tag 15 | 20 1120:d=0 hl=4 l=653 cons: univ: SEQUENCE 16 | 20 1777:d=0 hl=4 l=285 cons: univ: SEQUENCE 17 | 00 2066:d=0 hl=2 l= 0 prim: univ: EOC 18 | 21 2068:d=0 hl=2 l= 0 cons: univ: SET # signers 19 | 00 2070:d=0 hl=2 l= 0 prim: univ: EOC 20 | 00 2072:d=0 hl=2 l= 0 prim: univ: EOC 21 | 00 2074:d=0 hl=2 l= 0 prim: univ: EOC 22 | 00 2076:d=0 hl=2 l= 0 prim: univ: EOC 23 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/des.pem: -------------------------------------------------------------------------------- 1 | 2 | MIAGCSqGSIb3DQEHA6CAMIACAQAxggHmMIHwAgEAMIGZMIGSMQswCQYDVQQGEwJBVTETMBEG 3 | A1UECBMKUXVlZW5zbGFuZDERMA8GA1UEBxMIQnJpc2JhbmUxGjAYBgNVBAoTEUNyeXB0c29m 4 | dCBQdHkgTHRkMSIwIAYDVQQLExlERU1PTlNUUkFUSU9OIEFORCBURVNUSU5HMRswGQYDVQQD 5 | ExJERU1PIFpFUk8gVkFMVUUgQ0ECAgR+MA0GCSqGSIb3DQEBAQUABEC2vXI1xQDW6lUHM3zQ 6 | /9uBEBOO5A3TtkrklAXq7v01gsIC21t52qSk36REXY+slhNZ0OQ349tgkTsoETHFLoEwMIHw 7 | AgEAMIGZMIGSMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDERMA8GA1UEBxMI 8 | QnJpc2JhbmUxGjAYBgNVBAoTEUNyeXB0c29mdCBQdHkgTHRkMSIwIAYDVQQLExlERU1PTlNU 9 | UkFUSU9OIEFORCBURVNUSU5HMRswGQYDVQQDExJERU1PIFpFUk8gVkFMVUUgQ0ECAgR9MA0G 10 | CSqGSIb3DQEBAQUABEB8ujxbabxXUYJhopuDm3oDq4JNqX6Io4p3ro+ShqfIndsXTZ1v5a2N 11 | WtLLCWlHn/habjBwZ/DgQgcKASbZ7QxNMIAGCSqGSIb3DQEHATAaBggqhkiG9w0DAjAOAgIA 12 | oAQIbsL5v1wX98KggAQoAaJ4WHm68fXY1WE5OIjfVBIDpO1K+i8dmKhjnAjrjoyZ9Bwc8rDL 13 | lgQg4CXb805h5xl+GfvSwUaHJayte1m2mcOhs3J2YyqbQ+MEIMIiJQccmhO3oDKm36CFvYR8 14 | 5PjpclVcZyX2ngbwPFMnBAgy0clOAE6UKAAAAAAAAAAAAAA= 15 | 16 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/doc: -------------------------------------------------------------------------------- 1 | int PKCS7_set_content_type(PKCS7 *p7, int type); 2 | Call to set the type of PKCS7 object we are working on 3 | 4 | int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, 5 | EVP_MD *dgst); 6 | Use this to setup a signer info 7 | There will also be functions to add signed and unsigned attributes. 8 | 9 | int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i); 10 | Add a signer info to the content. 11 | 12 | int PKCS7_add_certificae(PKCS7 *p7, X509 *x509); 13 | int PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509); 14 | 15 | ---- 16 | 17 | p7=PKCS7_new(); 18 | PKCS7_set_content_type(p7,NID_pkcs7_signed); 19 | 20 | signer=PKCS7_SINGNER_INFO_new(); 21 | PKCS7_SIGNER_INFO_set(signer,x509,pkey,EVP_md5()); 22 | PKCS7_add_signer(py,signer); 23 | 24 | we are now setup. 25 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/infokey.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOgIBAAJBAK3nI4nuDYe3nDJES5WBc90igEstxWC4/h4YY+/ciYki35U8ets9 3 | mgaoCNYp/e9BCZHtvK2Y+fYokGJv5+cMTQsCAwEAAQJBAIHpvXvqEcOEoDRRHuIG 4 | fkcB4jPHcr9KE9TpxabH6xs9beN6OJnkePXAHwaz5MnUgSnbpOKq+cw8miKjXwe/ 5 | zVECIQDVLwncT2lRmXarEYHzb+q/0uaSvKhWKKt3kJasLNTrAwIhANDUc/ghut29 6 | p3jJYjurzUKuG774/5eLjPLsxPPIZzNZAiA/10hSq41UnGqHLEUIS9m2/EeEZe7b 7 | bm567dfRU9OnVQIgDo8ROrZXSchEGbaog5J5r/Fle83uO8l93R3GqVxKXZkCIFfk 8 | IPD5PIYQAyyod3hyKKza7ZP4CGY4oOfZetbkSGGG 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/p7/a1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/pkcs7/p7/a1 -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/p7/a2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/pkcs7/p7/a2 -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/p7/cert.p7c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/pkcs7/p7/cert.p7c -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/p7/smime.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/pkcs7/p7/smime.p7m -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/p7/smime.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/pkcs7/p7/smime.p7s -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/server.pem: -------------------------------------------------------------------------------- 1 | issuer= /C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test CA (1024 bit) 2 | subject=/C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Server test cert (512 bit) 3 | -----BEGIN CERTIFICATE----- 4 | MIIB6TCCAVICAQAwDQYJKoZIhvcNAQEEBQAwWzELMAkGA1UEBhMCQVUxEzARBgNV 5 | BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRswGQYD 6 | VQQDExJUZXN0IENBICgxMDI0IGJpdCkwHhcNOTcwNjA5MTM1NzQ2WhcNOTgwNjA5 7 | MTM1NzQ2WjBjMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEaMBgG 8 | A1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxIzAhBgNVBAMTGlNlcnZlciB0ZXN0IGNl 9 | cnQgKDUxMiBiaXQpMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ+zw4Qnlf8SMVIP 10 | Fe9GEcStgOY2Ww/dgNdhjeD8ckUJNP5VZkVDTGiXav6ooKXfX3j/7tdkuD8Ey2// 11 | Kv7+ue0CAwEAATANBgkqhkiG9w0BAQQFAAOBgQB4TMR2CvacKE9wAsu9jyCX8YiW 12 | mgCM+YoP6kt4Zkj2z5IRfm7WrycKsnpnOR+tGeqAjkCeZ6/36o9l91RvPnN1VJ/i 13 | xQv2df0KFeMr00IkDdTNAdIWqFkSsZTAY2QAdgenb7MB1joejquYzO2DQIO7+wpH 14 | irObpESxAZLySCmPPg== 15 | -----END CERTIFICATE----- 16 | -----BEGIN RSA PRIVATE KEY----- 17 | MIIBPAIBAAJBAJ+zw4Qnlf8SMVIPFe9GEcStgOY2Ww/dgNdhjeD8ckUJNP5VZkVD 18 | TGiXav6ooKXfX3j/7tdkuD8Ey2//Kv7+ue0CAwEAAQJAN6W31vDEP2DjdqhzCDDu 19 | OA4NACqoiFqyblo7yc2tM4h4xMbC3Yx5UKMN9ZkCtX0gzrz6DyF47bdKcWBzNWCj 20 | gQIhANEoojVt7hq+SQ6MCN6FTAysGgQf56Q3TYoJMoWvdiXVAiEAw3e3rc+VJpOz 21 | rHuDo6bgpjUAAXM+v3fcpsfZSNO6V7kCIQCtbVjanpUwvZkMI9by02oUk9taki3b 22 | PzPfAfNPYAbCJQIhAJXNQDWyqwn/lGmR11cqY2y9nZ1+5w3yHGatLrcDnQHxAiEA 23 | vnlEGo8K85u+KwIOimM48ZG8oTk7iFdkqLJR1utT3aU= 24 | -----END RSA PRIVATE KEY----- 25 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/t/3des.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PKCS7----- 2 | MIAGCSqGSIb3DQEHA6CAMIACAQAxggHmMIHwAgEAMIGZMIGSMQswCQYDVQQGEwJBVTETMBEG 3 | A1UECBMKUXVlZW5zbGFuZDERMA8GA1UEBxMIQnJpc2JhbmUxGjAYBgNVBAoTEUNyeXB0c29m 4 | dCBQdHkgTHRkMSIwIAYDVQQLExlERU1PTlNUUkFUSU9OIEFORCBURVNUSU5HMRswGQYDVQQD 5 | ExJERU1PIFpFUk8gVkFMVUUgQ0ECAgR+MA0GCSqGSIb3DQEBAQUABEC2vXI1xQDW6lUHM3zQ 6 | /9uBEBOO5A3TtkrklAXq7v01gsIC21t52qSk36REXY+slhNZ0OQ349tgkTsoETHFLoEwMIHw 7 | AgEAMIGZMIGSMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDERMA8GA1UEBxMI 8 | QnJpc2JhbmUxGjAYBgNVBAoTEUNyeXB0c29mdCBQdHkgTHRkMSIwIAYDVQQLExlERU1PTlNU 9 | UkFUSU9OIEFORCBURVNUSU5HMRswGQYDVQQDExJERU1PIFpFUk8gVkFMVUUgQ0ECAgR9MA0G 10 | CSqGSIb3DQEBAQUABEB8ujxbabxXUYJhopuDm3oDq4JNqX6Io4p3ro+ShqfIndsXTZ1v5a2N 11 | WtLLCWlHn/habjBwZ/DgQgcKASbZ7QxNMIAGCSqGSIb3DQEHATAaBggqhkiG9w0DAjAOAgIA 12 | oAQIbsL5v1wX98KggAQoAaJ4WHm68fXY1WE5OIjfVBIDpO1K+i8dmKhjnAjrjoyZ9Bwc8rDL 13 | lgQg4CXb805h5xl+GfvSwUaHJayte1m2mcOhs3J2YyqbQ+MEIMIiJQccmhO3oDKm36CFvYR8 14 | 5PjpclVcZyX2ngbwPFMnBAgy0clOAE6UKAAAAAAAAAAAAAA= 15 | -----END PKCS7----- 16 | 17 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/t/msie-e: -------------------------------------------------------------------------------- 1 | 2 | MIAGCSqGSIb3DQEHA6CAMIACAQAxggHCMIHMAgEAMHYwYjERMA8GA1UEBxMISW50ZXJuZXQxFzAV 3 | BgNVBAoTDlZlcmlTaWduLCBJbmMuMTQwMgYDVQQLEytWZXJpU2lnbiBDbGFzcyAxIENBIC0gSW5k 4 | aXZpZHVhbCBTdWJzY3JpYmVyAhBgQJiC3qfbCbjdj5INYLnKMA0GCSqGSIb3DQEBAQUABECMzu8y 5 | wQ/qZbO8cAGMRBF+mPruv3+Dvb9aWNZ2k8njUgqF6mcdhVB2MkGcsG3memRXJBixvMYWVkU3qK4Z 6 | VuKsMIHwAgEAMIGZMIGSMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDERMA8GA1UE 7 | BxMIQnJpc2JhbmUxGjAYBgNVBAoTEUNyeXB0c29mdCBQdHkgTHRkMSIwIAYDVQQLExlERU1PTlNU 8 | UkFUSU9OIEFORCBURVNUSU5HMRswGQYDVQQDExJERU1PIFpFUk8gVkFMVUUgQ0ECAgRuMA0GCSqG 9 | SIb3DQEBAQUABEBcWwYFHJbJGhiztt7lzue3Lc9CH5WAbyR+2BZ3uv+JxZfRs1PuaWPOwRa0Vgs3 10 | YwSJoRfxQj2Gk0wFqG1qt6d1MIAGCSqGSIb3DQEHATAaBggqhkiG9w0DAjAOAgIAoAQI8vRlP/Nx 11 | 2iSggASCAZhR5srxyspy7DfomRJ9ff8eMCtaNwEoEx7G25PZRonC57hBvGoScLtEPU3Wp9FEbPN7 12 | oJESeC+AqMTyTLNy8aQsyC5s53E9UkoIvg62ekYZBbXZqXsrxx4PhiiX3NH8GVh42phB0Chjw0nK 13 | HZeRDmxGY3Cmk+J+l0uVKxbNIfJIKOguLBnhqmnKH/PrnzDt591u0ULy2aTLqRm+4/1Yat/QPb6J 14 | eoKGwNPBbS9ogBdrCNCp9ZFg3Xar2AtQHzyTQIfYeH3SRQUpKmRm5U5o9p5emgEdT+ZfJm/J4tSH 15 | OmbgAFsbHQakA4MBZ4J5qfDJhOA2g5lWk1hIeu5Dn/AaLRZd0yz3oY0Ieo/erPWx/bCqtBzYbMe9 16 | qSFTedKlbc9EGe3opOTdBZVzK8KH3w3zsy5luxKdOUG59YYb5F1IZiWGiDyuo/HuacX+griu5LeD 17 | bEzOtZnko+TZXvWIko30fD79j3T4MRRhWXbgj2HKza+4vJ0mzcC/1+GPsJjAEAA/JgIEDU4w6/DI 18 | /HQHhLAO3G+9xKD7MvmrzkoAAAAAAAAAAAAA 19 | 20 | 21 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/pkcs7/t/msie-e.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PKCS7----- 2 | MIAGCSqGSIb3DQEHA6CAMIIDkAIBADGCAcIwgcwCAQAwdjBiMREwDwYDVQQHEwhJ 3 | bnRlcm5ldDEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xNDAyBgNVBAsTK1ZlcmlT 4 | aWduIENsYXNzIDEgQ0EgLSBJbmRpdmlkdWFsIFN1YnNjcmliZXICEGBAmILep9sJ 5 | uN2Pkg1gucowDQYJKoZIhvcNAQEBBQAEQIzO7zLBD+pls7xwAYxEEX6Y+u6/f4O9 6 | v1pY1naTyeNSCoXqZx2FUHYyQZywbeZ6ZFckGLG8xhZWRTeorhlW4qwwgfACAQAw 7 | gZkwgZIxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpRdWVlbnNsYW5kMREwDwYDVQQH 8 | EwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5cHRzb2Z0IFB0eSBMdGQxIjAgBgNVBAsT 9 | GURFTU9OU1RSQVRJT04gQU5EIFRFU1RJTkcxGzAZBgNVBAMTEkRFTU8gWkVSTyBW 10 | QUxVRSBDQQICBG4wDQYJKoZIhvcNAQEBBQAEQFxbBgUclskaGLO23uXO57ctz0If 11 | lYBvJH7YFne6/4nFl9GzU+5pY87BFrRWCzdjBImhF/FCPYaTTAWobWq3p3UwggHD 12 | BgkqhkiG9w0BBwEwGgYIKoZIhvcNAwIwDgICAKAECPL0ZT/zcdokgIIBmFHmyvHK 13 | ynLsN+iZEn19/x4wK1o3ASgTHsbbk9lGicLnuEG8ahJwu0Q9Tdan0URs83ugkRJ4 14 | L4CoxPJMs3LxpCzILmzncT1SSgi+DrZ6RhkFtdmpeyvHHg+GKJfc0fwZWHjamEHQ 15 | KGPDScodl5EObEZjcKaT4n6XS5UrFs0h8kgo6C4sGeGqacof8+ufMO3n3W7RQvLZ 16 | pMupGb7j/Vhq39A9vol6gobA08FtL2iAF2sI0Kn1kWDddqvYC1AfPJNAh9h4fdJF 17 | BSkqZGblTmj2nl6aAR1P5l8mb8ni1Ic6ZuAAWxsdBqQDgwFngnmp8MmE4DaDmVaT 18 | WEh67kOf8BotFl3TLPehjQh6j96s9bH9sKq0HNhsx72pIVN50qVtz0QZ7eik5N0F 19 | lXMrwoffDfOzLmW7Ep05Qbn1hhvkXUhmJYaIPK6j8e5pxf6CuK7kt4NsTM61meSj 20 | 5Nle9YiSjfR8Pv2PdPgxFGFZduCPYcrNr7i8nSbNwL/X4Y+wmMAQAD8mAgQNTjDr 21 | 8Mj8dAeEsA7cb73EoPsy+avOSgAAAAA= 22 | -----END PKCS7----- 23 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/rc2/version: -------------------------------------------------------------------------------- 1 | 1.1 23/08/96 - eay 2 | Changed RC2_set_key() so it now takes another argument. Many 3 | thanks to Peter Gutmann for the 4 | clarification and origional specification of RC2. BSAFE uses 5 | this last parameter, 'bits'. It the key is 128 bits, BSAFE 6 | also sets this parameter to 128. The old behaviour can be 7 | duplicated by setting this parameter to 1024. 8 | 9 | 1.0 08/04/96 - eay 10 | First version of SSLeay with rc2. This has been written from the spec 11 | posted sci.crypt. It is in this directory under rrc2.doc 12 | I have no test values for any mode other than ecb, my wrappers for the 13 | other modes should be ok since they are basically the same as 14 | the ones taken from idea and des :-). I have implemented them as 15 | little-endian operators. 16 | While rc2 is included because it is used with SSL, I don't know how 17 | far I trust it. It is about the same speed as IDEA and DES. 18 | So if you are paranoid, used Tripple DES, else IDEA. If RC2 19 | does get used more, perhaps more people will look for weaknesses in 20 | it. 21 | 22 | 23 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/rc4/asm/rc4-x86_64.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/rc4/asm/rc4-x86_64.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/rc4/rc4_locl.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_RC4_LOCL_H 2 | #define HEADER_RC4_LOCL_H 3 | #include 4 | #include 5 | #endif 6 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/ripemd/README: -------------------------------------------------------------------------------- 1 | RIPEMD-160 2 | http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html 3 | 4 | This is my implementation of RIPEMD-160. The pentium assember is a little 5 | off the pace since I only get 1050 cycles, while the best is 1013. 6 | I have a few ideas for how to get another 20 or so cycles, but at 7 | this point I will not bother right now. I believe the trick will be 8 | to remove my 'copy X array onto stack' until inside the RIP1() finctions the 9 | first time round. To do this I need another register and will only have one 10 | temporary one. A bit tricky.... I can also cleanup the saving of the 5 words 11 | after the first half of the calculation. I should read the origional 12 | value, add then write. Currently I just save the new and read the origioal. 13 | I then read both at the end. Bad. 14 | 15 | eric (20-Jan-1998) 16 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/rsa/rsa_locl.h: -------------------------------------------------------------------------------- 1 | extern int int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len, 2 | unsigned char *rm, size_t *prm_len, 3 | const unsigned char *sigbuf, size_t siglen, 4 | RSA *rsa); 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/s390xcap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | extern unsigned long OPENSSL_s390xcap_P[]; 8 | 9 | static sigjmp_buf ill_jmp; 10 | static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } 11 | 12 | unsigned long OPENSSL_s390x_facilities(void); 13 | 14 | void OPENSSL_cpuid_setup(void) 15 | { 16 | sigset_t oset; 17 | struct sigaction ill_act,oact; 18 | 19 | if (OPENSSL_s390xcap_P[0]) return; 20 | 21 | OPENSSL_s390xcap_P[0] = 1UL<<(8*sizeof(unsigned long)-1); 22 | 23 | memset(&ill_act,0,sizeof(ill_act)); 24 | ill_act.sa_handler = ill_handler; 25 | sigfillset(&ill_act.sa_mask); 26 | sigdelset(&ill_act.sa_mask,SIGILL); 27 | sigdelset(&ill_act.sa_mask,SIGTRAP); 28 | sigprocmask(SIG_SETMASK,&ill_act.sa_mask,&oset); 29 | sigaction (SIGILL,&ill_act,&oact); 30 | 31 | /* protection against missing store-facility-list-extended */ 32 | if (sigsetjmp(ill_jmp,1) == 0) 33 | OPENSSL_s390x_facilities(); 34 | 35 | sigaction (SIGILL,&oact,NULL); 36 | sigprocmask(SIG_SETMASK,&oset,NULL); 37 | } 38 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/sha/asm/README: -------------------------------------------------------------------------------- 1 | C2.pl works 2 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/sha/asm/sha1-586.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/sha/asm/sha1-586.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/sha/asm/sha256-586.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/sha/asm/sha256-586.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/sha/asm/sha512-586.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/sha/asm/sha512-586.pl -------------------------------------------------------------------------------- /jni/external/openssl/crypto/sparccpuid.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/sparccpuid.S -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/README: -------------------------------------------------------------------------------- 1 | Mutithreading testing area. 2 | 3 | Since this stuff is very very platorm specific, this is not part of the 4 | normal build. Have a read of doc/threads.doc. 5 | 6 | mttest will do some testing and will currently build under Windows NT/95, 7 | Solaris and Linux. The IRIX stuff is not finished. 8 | 9 | I have tested this program on a 12 CPU ultra sparc box (solaris 2.5.1) 10 | and things seem to work ok. 11 | 12 | The Linux pthreads package can be retrieved from 13 | http://www.mit.edu:8001/people/proven/pthreads.html 14 | 15 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/profile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /bin/rm -f mttest 3 | cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket 4 | 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/ptest.bat: -------------------------------------------------------------------------------- 1 | del mttest.exe 2 | 3 | purify cl /O2 -DWIN32 /MD -I..\..\out mttest.c /Femttest ..\..\out\ssl32.lib ..\..\out\crypt32.lib 4 | 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/pthread.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # build using pthreads 4 | # 5 | # http://www.mit.edu:8001/people/proven/pthreads.html 6 | # 7 | /bin/rm -f mttest 8 | pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto 9 | 10 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/pthread2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # build using pthreads where it's already built into the system 4 | # 5 | /bin/rm -f mttest 6 | gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread 7 | 8 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/purify.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /bin/rm -f mttest 3 | purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket 4 | 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/threads/solaris.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /bin/rm -f mttest 3 | cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket 4 | 5 | -------------------------------------------------------------------------------- /jni/external/openssl/crypto/x509v3/v3_pci.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/x509v3/v3_pci.c -------------------------------------------------------------------------------- /jni/external/openssl/crypto/x509v3/v3_pcia.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/openssl/crypto/x509v3/v3_pcia.c -------------------------------------------------------------------------------- /jni/external/openssl/include/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* crypto/ebcdic.h */ 2 | 3 | #ifndef HEADER_EBCDIC_H 4 | #define HEADER_EBCDIC_H 5 | 6 | #include 7 | 8 | /* Avoid name clashes with other applications */ 9 | #define os_toascii _openssl_os_toascii 10 | #define os_toebcdic _openssl_os_toebcdic 11 | #define ebcdic2ascii _openssl_ebcdic2ascii 12 | #define ascii2ebcdic _openssl_ascii2ebcdic 13 | 14 | extern const unsigned char os_toascii[256]; 15 | extern const unsigned char os_toebcdic[256]; 16 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 17 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /jni/external/openssl/openssl.version: -------------------------------------------------------------------------------- 1 | OPENSSL_VERSION=1.0.1c 2 | -------------------------------------------------------------------------------- /jni/external/openssl/patches/README: -------------------------------------------------------------------------------- 1 | progs.patch: 2 | 3 | Fixup sources under the apps/ directory that are not built under the android environment. 4 | 5 | 6 | small_records.patch: 7 | 8 | Reduce OpenSSL memory consumption. 9 | SSL records may be as large as 16K, but are typically < 2K. In 10 | addition, a historic bug in Windows allowed records to be as large 11 | 32K. OpenSSL statically allocates read and write buffers (34K and 12 | 18K respectively) used for processing records. 13 | With this patch, OpenSSL statically allocates 4K + 4K buffers, with 14 | the option of dynamically growing buffers to 34K + 4K, which is a 15 | saving of 44K per connection for the typical case. 16 | 17 | 18 | handshake_cutthrough.patch 19 | 20 | Enables SSL3+ clients to send application data immediately following the 21 | Finished message even when negotiating full-handshakes. With this patch, 22 | clients can negotiate SSL connections in 1-RTT even when performing 23 | full-handshakes. 24 | 25 | jsse.patch 26 | 27 | Support for JSSE implementation based on OpenSSL. 28 | 29 | sha1_armv4_large.patch 30 | 31 | This patch eliminates memory stores to addresses below SP. 32 | 33 | 34 | mips_private.patch: 35 | 36 | Fix duplicate defines of labels AES_set_encrypt_key and AES_set_decrypt_key 37 | by prefixing Mips version with private_ . 38 | Revise import script to generate o32-abi .s files for Mips. 39 | -------------------------------------------------------------------------------- /jni/external/openssl/patches/sha1_armv4_large.patch: -------------------------------------------------------------------------------- 1 | diff --git a/crypto/sha/asm/sha1-armv4-large.pl b/crypto/sha/asm/sha1-armv4-large.pl 2 | index 6e65fe3..79e3f61 100644 3 | --- a/crypto/sha/asm/sha1-armv4-large.pl 4 | +++ b/crypto/sha/asm/sha1-armv4-large.pl 5 | @@ -161,6 +161,7 @@ for($i=0;$i<5;$i++) { 6 | $code.=<<___; 7 | teq $Xi,sp 8 | bne .L_00_15 @ [((11+4)*5+2)*3] 9 | + sub sp,sp,#5*4 10 | ___ 11 | &BODY_00_15(@V); unshift(@V,pop(@V)); 12 | &BODY_16_19(@V); unshift(@V,pop(@V)); 13 | @@ -170,7 +171,7 @@ ___ 14 | $code.=<<___; 15 | 16 | ldr $K,.LK_20_39 @ [+15+16*4] 17 | - sub sp,sp,#25*4 18 | + sub sp,sp,#20*4 19 | cmn sp,#0 @ [+3], clear carry to denote 20_39 20 | .L_20_39_or_60_79: 21 | ___ 22 | -------------------------------------------------------------------------------- /jni/external/zlib/MODULE_LICENSE_BSD_LIKE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/MODULE_LICENSE_BSD_LIKE -------------------------------------------------------------------------------- /jni/external/zlib/NOTICE: -------------------------------------------------------------------------------- 1 | (C) 1995-2012 Jean-loup Gailly and Mark Adler 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 2. Altered source versions must be plainly marked as such, and must not be 16 | misrepresented as being the original software. 17 | 3. This notice may not be removed or altered from any source distribution. 18 | 19 | Jean-loup Gailly Mark Adler 20 | jloup@gzip.org madler@alumni.caltech.edu 21 | -------------------------------------------------------------------------------- /jni/external/zlib/src/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/ChangeLog -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/README.contrib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/README.contrib -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/ada/zlib.gpr: -------------------------------------------------------------------------------- 1 | project Zlib is 2 | 3 | for Languages use ("Ada"); 4 | for Source_Dirs use ("."); 5 | for Object_Dir use "."; 6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo"); 7 | 8 | package Compiler is 9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst"); 10 | end Compiler; 11 | 12 | package Linker is 13 | for Default_Switches ("ada") use ("-lz"); 14 | end Linker; 15 | 16 | package Builder is 17 | for Default_Switches ("ada") use ("-s", "-gnatQ"); 18 | end Builder; 19 | 20 | end Zlib; 21 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/blast/Makefile: -------------------------------------------------------------------------------- 1 | blast: blast.c blast.h 2 | cc -DTEST -o blast blast.c 3 | 4 | test: blast 5 | blast < test.pk | cmp - test.txt 6 | 7 | clean: 8 | rm -f blast blast.o 9 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/blast/README: -------------------------------------------------------------------------------- 1 | Read blast.h for purpose and usage. 2 | 3 | Mark Adler 4 | madler@alumni.caltech.edu 5 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/blast/test.pk -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/delphi/ZLibConst.pas: -------------------------------------------------------------------------------- 1 | unit ZLibConst; 2 | 3 | interface 4 | 5 | resourcestring 6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small'; 7 | sInvalidStreamOp = 'Invalid stream operation'; 8 | 9 | implementation 10 | 11 | end. 12 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib.build: -------------------------------------------------------------------------------- 1 |  2 | 3 | A .Net wrapper library around ZLib1.dll 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET 13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET 14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET 15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/DotZLib/UnitTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/dotzlib/DotZLib/UnitTests.cs -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/dotzlib/LICENSE_1_0.txt: -------------------------------------------------------------------------------- 1 | Boost Software License - Version 1.0 - August 17th, 2003 2 | 3 | Permission is hereby granted, free of charge, to any person or organization 4 | obtaining a copy of the software and accompanying documentation covered by 5 | this license (the "Software") to use, reproduce, display, distribute, 6 | execute, and transmit the Software, and to prepare derivative works of the 7 | Software, and to permit third-parties to whom the Software is furnished to 8 | do so, all subject to the following: 9 | 10 | The copyright notices in the Software and this entire statement, including 11 | the above license grant, this restriction and the following disclaimer, 12 | must be included in all copies of the Software, in whole or in part, and 13 | all derivative works of the Software, unless such copies or derivative 14 | works are solely in the form of machine-executable object code generated by 15 | a source language processor. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/iostream/test.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "zfstream.h" 3 | 4 | int main() { 5 | 6 | // Construct a stream object with this filebuffer. Anything sent 7 | // to this stream will go to standard out. 8 | gzofstream os( 1, ios::out ); 9 | 10 | // This text is getting compressed and sent to stdout. 11 | // To prove this, run 'test | zcat'. 12 | os << "Hello, Mommy" << endl; 13 | 14 | os << setcompressionlevel( Z_NO_COMPRESSION ); 15 | os << "hello, hello, hi, ho!" << endl; 16 | 17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION ) 18 | << "I'm compressing again" << endl; 19 | 20 | os.close(); 21 | 22 | return 0; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/iostream2/zstream_test.cpp: -------------------------------------------------------------------------------- 1 | #include "zstream.h" 2 | #include 3 | #include 4 | #include 5 | 6 | void main() { 7 | char h[256] = "Hello"; 8 | char* g = "Goodbye"; 9 | ozstream out("temp.gz"); 10 | out < "This works well" < h < g; 11 | out.close(); 12 | 13 | izstream in("temp.gz"); // read it back 14 | char *x = read_string(in), *y = new char[256], z[256]; 15 | in > y > z; 16 | in.close(); 17 | cout << x << endl << y << endl << z << endl; 18 | 19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results 20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl; 21 | out << z << endl << y << endl << x << endl; 22 | out << 1.1234567890123456789 << endl; 23 | 24 | delete[] x; delete[] y; 25 | } 26 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/iostream3/TODO: -------------------------------------------------------------------------------- 1 | Possible upgrades to gzfilebuf: 2 | 3 | - The ability to do putback (e.g. putbackfail) 4 | 5 | - The ability to seek (zlib supports this, but could be slow/tricky) 6 | 7 | - Simultaneous read/write access (does it make sense?) 8 | 9 | - Support for ios_base::ate open mode 10 | 11 | - Locale support? 12 | 13 | - Check public interface to see which calls give problems 14 | (due to dependence on library internals) 15 | 16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying 17 | of stream buffer to stream ( i.e. os << is.rdbuf(); ) 18 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/masmx64/bld_ml64.bat: -------------------------------------------------------------------------------- 1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm 2 | ml64.exe /Flgvmat64 /c /Zi gvmat64.asm 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/masmx64/readme.txt: -------------------------------------------------------------------------------- 1 | Summary 2 | ------- 3 | This directory contains ASM implementations of the functions 4 | longest_match() and inflate_fast(), for 64 bits x86 (both AMD64 and Intel EM64t), 5 | for use with Microsoft Macro Assembler (x64) for AMD64 and Microsoft C++ 64 bits. 6 | 7 | gvmat64.asm is written by Gilles Vollant (2005), by using Brian Raiter 686/32 bits 8 | assembly optimized version from Jean-loup Gailly original longest_match function 9 | 10 | inffasx64.asm and inffas8664.c were written by Chris Anderson, by optimizing 11 | original function from Mark Adler 12 | 13 | Use instructions 14 | ---------------- 15 | Assemble the .asm files using MASM and put the object files into the zlib source 16 | directory. You can also get object files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | define ASMV and ASMINF in your project. Include inffas8664.c in your source tree, 21 | and inffasx64.obj and gvmat64.obj as object to link. 22 | 23 | 24 | Build instructions 25 | ------------------ 26 | run bld_64.bat with Microsoft Macro Assembler (x64) for AMD64 (ml64.exe) 27 | 28 | ml64.exe is given with Visual Studio 2005, Windows 2003 server DDK 29 | 30 | You can get Windows 2003 server DDK with ml64 and cl for AMD64 from 31 | http://www.microsoft.com/whdc/devtools/ddk/default.mspx for low price) 32 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/masmx86/bld_ml32.bat: -------------------------------------------------------------------------------- 1 | ml /coff /Zi /c /Flmatch686.lst match686.asm 2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/masmx86/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | Summary 3 | ------- 4 | This directory contains ASM implementations of the functions 5 | longest_match() and inflate_fast(). 6 | 7 | 8 | Use instructions 9 | ---------------- 10 | Assemble using MASM, and copy the object files into the zlib source 11 | directory, then run the appropriate makefile, as suggested below. You can 12 | donwload MASM from here: 13 | 14 | http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64 15 | 16 | You can also get objects files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | Build instructions 21 | ------------------ 22 | * With Microsoft C and MASM: 23 | nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" 24 | 25 | * With Borland C and TASM: 26 | make -f win32/Makefile.bor LOCAL_ZLIB="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" OBJPA="+match686c.obj+match686.obj+inffas32.obj" 27 | 28 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | ./minizip test readme.txt 20 | ./miniunz -l test.zip 21 | mv readme.txt readme.old 22 | ./miniunz test.zip 23 | 24 | clean: 25 | /bin/rm -f *.o *~ minizip miniunz 26 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libminizip.la 2 | 3 | if COND_DEMOS 4 | bin_PROGRAMS = miniunzip minizip 5 | endif 6 | 7 | zlib_top_srcdir = $(top_srcdir)/../.. 8 | zlib_top_builddir = $(top_builddir)/../.. 9 | 10 | AM_CPPFLAGS = -I$(zlib_top_srcdir) 11 | AM_LDFLAGS = -L$(zlib_top_builddir) 12 | 13 | if WIN32 14 | iowin32_src = iowin32.c 15 | iowin32_h = iowin32.h 16 | endif 17 | 18 | libminizip_la_SOURCES = \ 19 | ioapi.c \ 20 | mztools.c \ 21 | unzip.c \ 22 | zip.c \ 23 | ${iowin32_src} 24 | 25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 26 | 27 | minizip_includedir = $(includedir)/minizip 28 | minizip_include_HEADERS = \ 29 | crypt.h \ 30 | ioapi.h \ 31 | mztools.h \ 32 | unzip.h \ 33 | zip.h \ 34 | ${iowin32_h} 35 | 36 | pkgconfigdir = $(libdir)/pkgconfig 37 | pkgconfig_DATA = minizip.pc 38 | 39 | EXTRA_PROGRAMS = miniunzip minizip 40 | 41 | miniunzip_SOURCES = miniunz.c 42 | miniunzip_LDADD = libminizip.la 43 | 44 | minizip_SOURCES = minizip.c 45 | minizip_LDADD = libminizip.la -lz 46 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.2.7], [bugzilla.redhat.com]) 5 | AC_CONFIG_SRCDIR([minizip.c]) 6 | AM_INIT_AUTOMAKE([foreign]) 7 | LT_INIT 8 | 9 | AC_MSG_CHECKING([whether to build example programs]) 10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs])) 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) 12 | if test "$enable_demos" = yes 13 | then 14 | AC_MSG_RESULT([yes]) 15 | else 16 | AC_MSG_RESULT([no]) 17 | fi 18 | 19 | case "${host}" in 20 | *-mingw* | mingw*) 21 | WIN32="yes" 22 | ;; 23 | *) 24 | ;; 25 | esac 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 | 28 | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 31 | AC_CONFIG_FILES([Makefile minizip.pc]) 32 | AC_OUTPUT 33 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def)); 23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def)); 24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def)); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/minizip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/minizip 5 | 6 | Name: minizip 7 | Description: Minizip zip file manipulation library 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lminizip 11 | Libs.private: -lz 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/testzlib/testzlib.txt: -------------------------------------------------------------------------------- 1 | To build testzLib with Visual Studio 2005: 2 | 3 | copy to a directory file from : 4 | - root of zLib tree 5 | - contrib/testzlib 6 | - contrib/masmx86 7 | - contrib/masmx64 8 | - contrib/vstudio/vc7 9 | 10 | and open testzlib8.sln -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/untgz/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-g 3 | 4 | untgz: untgz.o ../../libz.a 5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz 6 | 7 | untgz.o: untgz.c ../../zlib.h 8 | $(CC) $(CFLAGS) -c -I../.. untgz.c 9 | 10 | ../../libz.a: 11 | cd ../..; ./configure; make 12 | 13 | clean: 14 | rm -f untgz untgz.o *~ 15 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/untgz/Makefile.msc: -------------------------------------------------------------------------------- 1 | CC=cl 2 | CFLAGS=-MD 3 | 4 | untgz.exe: untgz.obj ..\..\zlib.lib 5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib 6 | 7 | untgz.obj: untgz.c ..\..\zlib.h 8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c 9 | 10 | ..\..\zlib.lib: 11 | cd ..\.. 12 | $(MAKE) -f win32\makefile.msc 13 | cd contrib\untgz 14 | 15 | clean: 16 | -del untgz.obj 17 | -del untgz.exe 18 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/miniunz.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {048af943-022b-4db6-beeb-a54c34774ee2} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {c1d600d2-888f-4aea-b73e-8b0dd9befa0c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {0844199a-966b-4f19-81db-1e0125e141b9} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/miniunz.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/minizip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {c0419b40-bf50-40da-b153-ff74215b79de} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {bb87b070-735b-478e-92ce-7383abb2f36c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {f46ab6a6-548f-43cb-ae96-681abb5bd5db} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/minizip.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/testzlib.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/testzlibdll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fa61a89f-93fc-4c89-b29e-36224b7592f4} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {d4b85da0-2ba2-4934-b57f-e2584e3848ee} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/testzlibdll.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1.2.7,0 6 | PRODUCTVERSION 1.2.7,0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.7\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlib.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2012 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/zlibstat.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc10/zlibvc.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /jni/external/zlib/src/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1.2.7,0 6 | PRODUCTVERSION 1.2.7,0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.7\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlib.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2012 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /jni/external/zlib/src/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /jni/external/zlib/src/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /jni/external/zlib/src/nintendods/README: -------------------------------------------------------------------------------- 1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template. 2 | 3 | Eduardo Costa 4 | January 3, 2009 5 | 6 | -------------------------------------------------------------------------------- /jni/external/zlib/src/old/README: -------------------------------------------------------------------------------- 1 | This directory contains files that have not been updated for zlib 1.2.x 2 | 3 | (Volunteers are encouraged to help clean this up. Thanks.) 4 | -------------------------------------------------------------------------------- /jni/external/zlib/src/old/os2/zlib.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Slightly modified version of ../nt/zlib.dnt :-) 3 | ; 4 | 5 | LIBRARY Z 6 | DESCRIPTION "Zlib compression library for OS/2" 7 | CODE PRELOAD MOVEABLE DISCARDABLE 8 | DATA PRELOAD MOVEABLE MULTIPLE 9 | 10 | EXPORTS 11 | adler32 12 | compress 13 | crc32 14 | deflate 15 | deflateCopy 16 | deflateEnd 17 | deflateInit2_ 18 | deflateInit_ 19 | deflateParams 20 | deflateReset 21 | deflateSetDictionary 22 | gzclose 23 | gzdopen 24 | gzerror 25 | gzflush 26 | gzopen 27 | gzread 28 | gzwrite 29 | inflate 30 | inflateEnd 31 | inflateInit2_ 32 | inflateInit_ 33 | inflateReset 34 | inflateSetDictionary 35 | inflateSync 36 | uncompress 37 | zlibVersion 38 | gzprintf 39 | gzputc 40 | gzgetc 41 | gzseek 42 | gzrewind 43 | gztell 44 | gzeof 45 | gzsetparams 46 | zError 47 | inflateSyncPoint 48 | get_crc_table 49 | compress2 50 | gzputs 51 | gzgets 52 | -------------------------------------------------------------------------------- /jni/external/zlib/src/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the projects/ directory. 4 | -------------------------------------------------------------------------------- /jni/external/zlib/src/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2006 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /jni/external/zlib/src/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/jni/external/zlib/src/zlib.3.pdf -------------------------------------------------------------------------------- /jni/external/zlib/src/zlib.map: -------------------------------------------------------------------------------- 1 | ZLIB_1.2.0 { 2 | global: 3 | compressBound; 4 | deflateBound; 5 | inflateBack; 6 | inflateBackEnd; 7 | inflateBackInit_; 8 | inflateCopy; 9 | local: 10 | deflate_copyright; 11 | inflate_copyright; 12 | inflate_fast; 13 | inflate_table; 14 | zcalloc; 15 | zcfree; 16 | z_errmsg; 17 | gz_error; 18 | gz_intmax; 19 | _*; 20 | }; 21 | 22 | ZLIB_1.2.0.2 { 23 | gzclearerr; 24 | gzungetc; 25 | zlibCompileFlags; 26 | } ZLIB_1.2.0; 27 | 28 | ZLIB_1.2.0.8 { 29 | deflatePrime; 30 | } ZLIB_1.2.0.2; 31 | 32 | ZLIB_1.2.2 { 33 | adler32_combine; 34 | crc32_combine; 35 | deflateSetHeader; 36 | inflateGetHeader; 37 | } ZLIB_1.2.0.8; 38 | 39 | ZLIB_1.2.2.3 { 40 | deflateTune; 41 | gzdirect; 42 | } ZLIB_1.2.2; 43 | 44 | ZLIB_1.2.2.4 { 45 | inflatePrime; 46 | } ZLIB_1.2.2.3; 47 | 48 | ZLIB_1.2.3.3 { 49 | adler32_combine64; 50 | crc32_combine64; 51 | gzopen64; 52 | gzseek64; 53 | gztell64; 54 | inflateUndermine; 55 | } ZLIB_1.2.2.4; 56 | 57 | ZLIB_1.2.3.4 { 58 | inflateReset2; 59 | inflateMark; 60 | } ZLIB_1.2.3.3; 61 | 62 | ZLIB_1.2.3.5 { 63 | gzbuffer; 64 | gzoffset; 65 | gzoffset64; 66 | gzclose_r; 67 | gzclose_w; 68 | } ZLIB_1.2.3.4; 69 | 70 | ZLIB_1.2.5.1 { 71 | deflatePending; 72 | } ZLIB_1.2.3.5; 73 | 74 | ZLIB_1.2.5.2 { 75 | deflateResetKeep; 76 | gzgetc_; 77 | inflateResetKeep; 78 | } ZLIB_1.2.5.1; 79 | -------------------------------------------------------------------------------- /jni/external/zlib/src/zlib.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | sharedlibdir=${libdir} 5 | includedir=${prefix}/include 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: 1.2.7 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /jni/external/zlib/src/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /jni/external/zlib/src/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /jni/external/zlib/update_zlib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Run with no arguments from any directory, with no special setup required. 3 | 4 | # Abort if any command returns an error exit status, or if an undefined 5 | # variable is used. 6 | set -e 7 | set -u 8 | 9 | base_dir=$(realpath $(dirname $0)) 10 | 11 | # Extract the latest version from the web page. 12 | new_version=$(wget -O - --no-verbose -q http://zlib.net/ | \ 13 | grep 'http://zlib.net/zlib-[0-9].*.tar.gz' | \ 14 | sed 's/.*zlib-\(.*\)\.tar\.gz.*/\1/') 15 | tgz_file="zlib-$new_version.tar.gz" 16 | 17 | echo "Upgrading zlib to version $new_version..." 18 | echo "-------------------------------------------------------------------" 19 | 20 | echo "Downloading $tgz_file..." 21 | wget -O /tmp/$tgz_file --no-verbose "http://zlib.net/$tgz_file" 22 | 23 | echo "Cleaning out old version..." 24 | src_dir=$base_dir/src 25 | rm -rf $src_dir 26 | 27 | echo "Unpacking new version..." 28 | cd $base_dir 29 | tar zxf /tmp/$tgz_file 30 | mv zlib-$new_version src 31 | 32 | echo "Configuring new version..." 33 | cd src 34 | ./configure 35 | rm Makefile configure.log 36 | cd .. 37 | 38 | echo "Fixing NOTICE file..." 39 | grep -A21 'Copyright notice:' src/README | tail -20 > NOTICE 40 | 41 | md5_sum=$(md5sum /tmp/$tgz_file) 42 | echo "MD5: $md5_sum" 43 | -------------------------------------------------------------------------------- /prebuilt/openssh/armeabi-v7a/bin/scp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/prebuilt/openssh/armeabi-v7a/bin/scp -------------------------------------------------------------------------------- /prebuilt/openssh/armeabi-v7a/bin/sftp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/prebuilt/openssh/armeabi-v7a/bin/sftp -------------------------------------------------------------------------------- /prebuilt/openssh/armeabi-v7a/bin/ssh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/prebuilt/openssh/armeabi-v7a/bin/ssh -------------------------------------------------------------------------------- /prebuilt/openssh/armeabi-v7a/lib/libssh.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/android-command-line-ssh/9803fa2c4906dcf743a2c96e5d888fd1da9f4119/prebuilt/openssh/armeabi-v7a/lib/libssh.so -------------------------------------------------------------------------------- /tools/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Use ADB to install openssh tools on a connected Android device. 4 | 5 | set -e 6 | 7 | SCRIPT_DIR=`cd $(dirname $0);pwd -P` 8 | 9 | if [ "$ANDROID_NDK_ROOT" == "" ]; then 10 | echo "Expected ANDROID_NDK_ROOT to be defined." 11 | exit 1 12 | fi 13 | 14 | cd $SCRIPT_DIR/../jni 15 | 16 | $ANDROID_NDK_ROOT/ndk-build -j8 17 | 18 | PREBUILT=$SCRIPT_DIR/../prebuilt 19 | PREBUILT_OPENSSH=$PREBUILT/openssh 20 | 21 | cd $SCRIPT_DIR/.. 22 | 23 | rm -rf $PREBUILT 24 | mkdir $PREBUILT 25 | mkdir $PREBUILT_OPENSSH 26 | mkdir $PREBUILT_OPENSSH/armeabi-v7a 27 | mkdir $PREBUILT_OPENSSH/armeabi-v7a/bin 28 | mkdir $PREBUILT_OPENSSH/armeabi-v7a/lib 29 | 30 | OUT=obj/local/armeabi-v7a 31 | 32 | cp $OUT/ssh_exe $PREBUILT_OPENSSH/armeabi-v7a/bin/ssh 33 | cp $OUT/scp $PREBUILT_OPENSSH/armeabi-v7a/bin 34 | cp $OUT/sftp $PREBUILT_OPENSSH/armeabi-v7a/bin 35 | cp $OUT/libssh.so $PREBUILT_OPENSSH/armeabi-v7a/lib 36 | -------------------------------------------------------------------------------- /tools/clean-device.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | ADB=adb 5 | 6 | command -v $ADB >/dev/null 2>&1 || { echo >&2 "Can't find the '$ADB' command. Aborting"; exit 1; } 7 | 8 | $ADB shell rm -r /data/local/bin 9 | $ADB shell rm -r /data/local/lib 10 | -------------------------------------------------------------------------------- /tools/copyPrebuilt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This script only needs to be run on a machine that's used to create the installer. It's currently 4 | # hard-coded for Jack Palevich's development machine. It's checked in for safe keeping. 5 | 6 | set -e 7 | 8 | if [ `whoami` != "jackpal" ]; then 9 | echo This script only needs to be run on jackpal\'s machine. 10 | exit -1 11 | fi 12 | 13 | SCRIPT_DIR=`cd $(dirname $0);pwd -P` 14 | 15 | ANDROID_SYSTEM_TREE='/Volumes/Android/jb-mr1-dev' 16 | 17 | if [ ! -d "$ANDROID_SYSTEM_TREE" ]; then 18 | echo "Could not find Android system source tree at $ANDROID_SYSTEM_TREE" 19 | exit -2 20 | fi 21 | 22 | OUTPUT_BASE=$ANDROID_SYSTEM_TREE/out/target/product/grouper/system 23 | 24 | if [ ! -d "$OUTPUT_BASE" ]; then 25 | echo "Could not find Android system build output at $OUTPUT_BASE" 26 | echo "Did you do a build of external/openssh ?" 27 | exit -3 28 | fi 29 | 30 | FILES="lib/libssh.so bin/ssh-keygen bin/sshd bin/sftp bin/ssh bin/scp" 31 | 32 | PREBUILT=$SCRIPT_DIR/../prebuilt 33 | PREBUILT_OPENSSH=$PREBUILT/openssh 34 | 35 | rm -rf $PREBUILT 36 | mkdir $PREBUILT 37 | mkdir $PREBUILT_OPENSSH 38 | 39 | cd $OUTPUT_BASE 40 | 41 | for F in $FILES; do 42 | cp $F $PREBUILT_OPENSSH 43 | done 44 | 45 | cd $PREBUILT 46 | git add . 47 | -------------------------------------------------------------------------------- /tools/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Use ADB to install openssh tools on a connected Android device. 4 | 5 | set -e 6 | 7 | SCRIPT_DIR=`cd $(dirname $0);pwd -P` 8 | 9 | OPENSSH_DIR=$SCRIPT_DIR/../prebuilt/openssh 10 | 11 | if [ ! -d "$OPENSSH_DIR" ]; then 12 | echo "Could not find $OPENSSH_DIR" 13 | exit -1 14 | fi 15 | 16 | ADB=adb 17 | 18 | command -v $ADB >/dev/null 2>&1 || { echo >&2 "Can't find the '$ADB' command. Aborting"; exit 1; } 19 | 20 | DEVICE_BIN_DIR=/data/local/bin 21 | DEVICE_LIB_DIR=/data/local/lib 22 | 23 | adb shell mkdir $DEVICE_BIN_DIR 24 | adb shell mkdir $DEVICE_LIB_DIR 25 | 26 | BINS="sftp ssh scp" 27 | LIBS="libssh.so" 28 | 29 | for F in $BINS; do 30 | adb push $OPENSSH_DIR/armeabi-v7a/bin/$F $DEVICE_BIN_DIR 31 | done 32 | 33 | for F in $LIBS; do 34 | adb push $OPENSSH_DIR/armeabi-v7a/lib/$F $DEVICE_LIB_DIR 35 | done 36 | --------------------------------------------------------------------------------