Deleted Added
full compact
pam_ssh.c (174837) pam_ssh.c (204917)
1/*-
2 * Copyright (c) 2003 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 19 unchanged lines hidden (view full) ---

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 19 unchanged lines hidden (view full) ---

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/lib/libpam/modules/pam_ssh/pam_ssh.c 174837 2007-12-21 12:00:16Z des $");
36__FBSDID("$FreeBSD: head/lib/libpam/modules/pam_ssh/pam_ssh.c 204917 2010-03-09 19:16:43Z des $");
37
38#include <sys/param.h>
39#include <sys/wait.h>
40
41#include <errno.h>
42#include <fcntl.h>
43#include <paths.h>
44#include <pwd.h>

--- 11 unchanged lines hidden (view full) ---

56
57#include <openssl/evp.h>
58
59#include "key.h"
60#include "buffer.h"
61#include "authfd.h"
62#include "authfile.h"
63
37
38#include <sys/param.h>
39#include <sys/wait.h>
40
41#include <errno.h>
42#include <fcntl.h>
43#include <paths.h>
44#include <pwd.h>

--- 11 unchanged lines hidden (view full) ---

56
57#include <openssl/evp.h>
58
59#include "key.h"
60#include "buffer.h"
61#include "authfd.h"
62#include "authfile.h"
63
64#define ssh_add_identity(auth, key, comment) \
65 ssh_add_identity_constrained(auth, key, comment, 0, 0)
66
64extern char **environ;
65
66struct pam_ssh_key {
67 Key *key;
68 char *comment;
69};
70
71static const char *pam_ssh_prompt = "SSH passphrase: ";

--- 354 unchanged lines hidden ---
67extern char **environ;
68
69struct pam_ssh_key {
70 Key *key;
71 char *comment;
72};
73
74static const char *pam_ssh_prompt = "SSH passphrase: ";

--- 354 unchanged lines hidden ---