summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* New key API: refactor key-related functions to be more library-like,djm2014-06-241-7/+17
| | | | | | | | | existing API is offered as a set of wrappers. with and ok markus@ Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew Dempsky and Ron Bowes for a detailed review a few months ago.
* convert memset of potentially-private data to explicit_bzero()djm2014-02-021-4/+4
|
* skip requesting smartcard PIN when removing keys from agent; bz#2187djm2013-12-191-6/+9
| | | | patch from jay AT slushpupie.com; ok dtucker
* Make ssh-add also add .ssh/id_ed25519; fixes lie in manual page.pascal2013-12-151-1/+2
| | | | ok markus@
* bye, bye xfree(); ok markus@djm2013-05-171-10/+10
|
* prevent double-free of comment; ok djm@markus2012-12-051-1/+2
|
* make deleting explicit keys "ssh-add -d" symmetric with adding keys -djm2012-12-021-7/+31
| | | | | try to delete the corresponding certificate too and respect the -k option to allow deleting of the key only; feedback and ok markus@
* add -k to usage(); reminded by jmc@djm2011-10-181-3/+4
|
* new "ssh-add -k" option to load plain keys (skipping certificates);djm2011-10-181-10/+17
| | | | "looks ok" markus@
* allow "ssh-add - < key"; feedback and ok markus@djm2011-05-041-8/+25
|
* reintroduce commit from tedu@, which I pulled out for release engineering:djm2010-08-311-2/+2
| | | | | OpenSSL_add_all_algorithms is the name of the function we have a man page for, so use that. ok djm
* Implement Elliptic Curve Cryptography modes for key exchange (ECDH) anddjm2010-08-311-1/+2
| | | | | | | | | | | | | | | | | host/user keys (ECDSA) as specified by RFC5656. ECDH and ECDSA offer better performance than plain DH and DSA at the same equivalent symmetric key length, as well as much shorter keys. Only the mandatory sections of RFC5656 are implemented, specifically the three REQUIRED curves nistp256, nistp384 and nistp521 and only ECDH and ECDSA. Point compression (optional in RFC5656 is NOT implemented). Certificate host and user keys using the new ECDSA key types are supported. Note that this code has not been tested for interoperability and may be subject to change. feedback and ok markus@
* backout previous temporarily; discussed with deraadt@djm2010-08-161-2/+2
|
* OpenSSL_add_all_algorithms is the name of the function we have a man pagetedu2010-08-121-2/+2
| | | | for, so use that. ok djm
* check that the certificate matches the corresponding private key beforedjm2010-05-141-21/+29
| | | | grafting it on
* revised certificate format ssh-{dss,rsa}-cert-v01@openssh.com with thedjm2010-04-161-2/+2
| | | | | | | | | | | | | | | | | | following changes: move the nonce field to the beginning of the certificate where it can better protect against chosen-prefix attacks on the signature hash Rename "constraints" field to "critical options" Add a new non-critical "extensions" field Add a serial number The older format is still support for authentication and cert generation (use "ssh-keygen -t v00 -s ca_key ..." to generate a v00 certificate) ok markus@
* zap what seems to be a left-over debug message; ok markus@otto2010-03-011-3/+2
|
* Add support for certificate key types for users and hosts.djm2010-02-261-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | OpenSSH certificate key types are not X.509 certificates, but a much simpler format that encodes a public key, identity information and some validity constraints and signs it with a CA key. CA keys are regular SSH keys. This certificate style avoids the attack surface of X.509 certificates and is very easy to deploy. Certified host keys allow automatic acceptance of new host keys when a CA certificate is marked as trusted in ~/.ssh/known_hosts. see VERIFYING HOST KEYS in ssh(1) for details. Certified user keys allow authentication of users when the signing CA key is marked as trusted in authorized_keys. See "AUTHORIZED_KEYS FILE FORMAT" in sshd(8) for details. Certificates are minted using ssh-keygen(1), documentation is in the "CERTIFICATES" section of that manpage. Documentation on the format of certificates is in the file PROTOCOL.certkeys feedback and ok markus@
* replace our obsolete smartcard code with PKCS#11.markus2010-02-081-11/+9
| | | | | | | | | ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20.pdf ssh(1) and ssh-keygen(1) use dlopen(3) directly to talk to a PKCS#11 provider (shared library) while ssh-agent(1) delegates PKCS#11 to a forked a ssh-pkcs11-helper process. PKCS#11 is currently a compile time option. feedback and ok djm@; inspired by patches from Alon Bar-Lev
* Do not fall back to adding keys without contraints (ssh-add -c / -t ...)djm2009-08-271-4/+1
| | | | | | | | when the agent refuses the constrained add request. This was a useful migration measure back in 2002 when constraints were new, but just adds risk now. bz #1612, report and patch from dkg AT fifthhorseman.net; ok markus@
* sort synopsis and options in ssh-agent(1); usage is lowercasesobrado2007-09-091-2/+2
| | | | ok jmc@
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-4/+3
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <stdio.h> out of includes.hstevesk2006-08-011-1/+2
|
* move #include <stdlib.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <sys/param.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <string.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <unistd.h> out of includes.hstevesk2006-07-171-1/+2
|
* use O_RDONLY vs. 0 in open(); no binary changestevesk2006-07-091-2/+2
|
* move #include <fcntl.h> out of includes.hstevesk2006-07-091-1/+2
|
* move #include <pwd.h> out of includes.h; ok markus@stevesk2006-07-061-1/+3
|
* Sync usage() with man page and reality.mk2006-05-301-2/+2
| | | | ok deraadt dtucker
* Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatdjm2006-03-251-0/+1
| | | | Theo nuked - our scripts to sync -portable need them in the files
* in a switch (), break after return or goto is stupidderaadt2006-03-201-3/+0
|
* RCSID() can diederaadt2006-03-191-1/+0
|
* Make ssh-add check file permissions before attempting to load privatedtucker2006-03-131-4/+13
| | | | | key files multiple times; it will fail anyway and this prevents confusing multiple prompts and warnings. mindrot #1138, ok djm@
* move #include <sys/stat.h> out of includes.h; ok markus@stevesk2006-02-201-1/+4
|
* spacederaadt2005-11-121-2/+3
|
* ensure that stdio fds are attached; ok deraadt@djm2005-09-131-1/+4
|
* knf says that a 2nd level indent is four (not three or five) spacesdjm2005-07-171-2/+2
|
* spacingderaadt2005-03-101-3/+3
|
* kill a tiny header; ok deraadt@djm2004-05-081-2/+1
|
* unexpand and delete whitespace at EOL; ok markus@djm2003-11-211-4/+4
|
* print out key comment on each prompt; make ssh-askpass more useable; ok djm@markus2003-06-161-2/+3
|
* make agent constraints (lifetime, confirm) work with smartcard keys; ok markus@djm2003-06-111-2/+2
|
* fix memory leaks; from dlheine@suif.Stanford.EDU/CLOUSEAU; ok djm@markus2003-03-051-3/+6
|
* ssh-add -c, prompt user for confirmation (using ssh-askpass) whenmarkus2003-01-231-3/+14
| | | | private agent key is used; with djm@; test by dugsong@, djm@; ok deraadt@
* KNFderaadt2002-11-211-2/+2
|
* typo; cd@kalkatraz.demarkus2002-09-191-2/+2
|
* fix exit code for -X/-xmarkus2002-06-261-2/+2
|
* KNF done automatically while reading....deraadt2002-06-191-2/+2
|