Displaying 4 results from an estimated 4 matches for "sc_reader_id".
2002 Jul 20
0
opensc smartcard support does not work
...the problem:
*** ../openssh-3.2.2p1.orig/scard-opensc.c Tue Apr 23 14:48:46 2002
--- ./scard-opensc.c Sat Jul 20 19:32:19 2002
***************
*** 89,94 ****
--- 89,98 ----
r = sc_establish_context(&ctx, "openssh");
if (r)
goto err;
+ if (sc_reader_id < 0 || sc_reader_id >= ctx->reader_count) {
+ r = SC_ERROR_NO_READERS_FOUND;
+ goto err;
+ }
r = sc_connect_card(ctx->reader[sc_reader_id], 0, &card);
if (r)
goto err;
***************
*** 190,212 ****
unsigned...
2005 Jul 26
1
Linux in-kernel keys support
...reader Add key in smartcard reader.\n");
fprintf(stderr, " -e reader Remove key in smartcard reader.\n");
@@ -307,7 +503,7 @@
main(int argc, char **argv)
{
extern char *optarg;
- extern int optind;
+ extern int optind, opterr;
AuthenticationConnection *ac = NULL;
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
@@ -318,13 +514,34 @@
SSLeay_add_all_algorithms();
- /* At first, get a connection to the authentication agent. */
+#ifdef HAVE_LIBKEYUTIL
+ /* At first, check if we are working on the kernel or agent keys */
+ opterr = 0;
+ while ((ch = getopt(argc...
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
...-u -r1.74 ssh-add.c
--- ssh-add.c 21 Aug 2003 23:34:41 -0000 1.74
+++ ssh-add.c 10 Sep 2003 18:59:00 -0000
@@ -313,8 +313,10 @@ usage(void)
int
main(int argc, char **argv)
{
+#ifndef HAVE_GETOPT_H
extern char *optarg;
extern int optind;
+#endif
AuthenticationConnection *ac = NULL;
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
Index: ssh-agent.c
===================================================================
RCS file: /cvs/openssh_cvs/ssh-agent.c,v
retrieving revision 1.122
diff -p -u -r1.122 ssh-agent.c
--- ssh-agent.c 21 Aug 2003 23:34:41 -0000 1.122
+++ ssh-agent.c 10 Se...
2004 Oct 03
3
[PATCH] PreferAskpass in ssh_config
...eadconf.h"
/* argv0 */
extern char *__progname;
@@ -68,6 +69,11 @@
/* we keep a cache of one passphrases */
static char *pass = NULL;
+
+Options options;
+
+uid_t original_real_uid;
+
static void
clear_pass(void)
{
@@ -311,12 +317,30 @@
AuthenticationConnection *ac = NULL;
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
+ char buf[256];
+ struct passwd *pw;
__progname = ssh_get_progname(argv[0]);
init_rng();
seed_rng();
SSLeay_add_all_algorithms();
+
+ /* Read options */
+ initialize_options(&options);
+
+ pw = getpwuid(original_real_uid = getuid());
+ i...