List Info

Thread: Compiling OpenSSH/OpenSC




Compiling OpenSSH/OpenSC
country flaguser name
United States
2008-03-05 21:58:09
Should I use the develop list for questions about compiling
openSC?
--
dan



_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-06 08:41:33
Dan Peterson wrote:
> Should I use the develop list for questions about
compiling openSC?

Can you be a bit more specific about the problem?

--Marcin

_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

Re: Compiling OpenSSH/OpenSC
country flaguser name
United States
2008-03-06 12:16:54
Okay;
I have in a cygwin environment...

I can compile OPenSC
$ ./configure
$ make
$ make install
No problem.

I can compile OpenSSH - no problem (4.7p1)
$ ./configure
$ make
$ make install
No problem

But when I try and compile OpenSSH with opensc support:
$./configure --with-opensc=/usr/local --with-ipv4-default
--with-md5-password
$ make
I get errors:

gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o
sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -l
ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o -lcrypt
-L/usr/local/lib -lopensc
/usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_unbind':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:783:
undefined reference to
`_lt_dlclose'
/usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_bind':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:713:
undefined reference to
`_scconf_find_blocks'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:721:
undefined reference to
`_scconf_get_bool'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:731:
undefined reference to
`_scconf_get_bool'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:733:
undefined reference to
`_scconf_get_bool'
/usr/local/lib/libopensc.a(card.o): In function
`_sc_check_forced_protocol':
/home/dan/opensc-0.11.4/src/libopensc/card.c:910: undefined
reference to
`_scconf_get_str'
/usr/local/lib/libopensc.a(card.o): In function
`sc_get_conf_block':
/home/dan/opensc-0.11.4/src/libopensc/card.c:935: undefined
reference to
`_scconf_find_blocks'
/usr/local/lib/libopensc.a(ctx.o): In function
`load_dynamic_driver':
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:289: undefined
reference to
`_scconf_find_blocks'
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:297: undefined
reference to
`_scconf_get_str'
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:339: undefined
reference to
`_lt_dlopen'
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:346: undefined
reference to
`_lt_dlsym'
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:347: undefined
reference to
`_lt_dlsym'
/home/dan/opensc-0.11.4/src/libopensc/ctx.c:357: undefined
reference to
`_lt_dlclose'

.....


/usr/local/lib/libopensc.a(pkcs15-wrap.o): In function
`sc_pkcs15_derive_key':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:103:
undefined reference
to `_EVP_CIPHER_key_length'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:119:
undefined reference
to `_PKCS5_PBKDF2_HMAC_SHA1'
/usr/local/lib/libopensc.a(pkcs15-wrap.o): In function
`do_cipher':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:144:
undefined reference
to `_EVP_CIPHER_CTX_block_size'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:149:
undefined reference
to `_EVP_CipherUpdate'
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:157:
undefined reference
to `_EVP_CipherFinal'
/usr/local/lib/libopensc.a(pkcs15-actalis.o): In function
`sc_pkcs15emu_actalis_init':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-actalis.c:229:
undefined
reference to `_uncompress'
/usr/local/lib/libopensc.a(pkcs15-infocamere.o): In
function
`loadCertificate':
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-infocamere.c:53
2: undefined
reference to `_uncompress'
/usr/local/lib/libopensc.a(compression.o): In function
`sc_decompress':
/home/dan/opensc-0.11.4/src/libopensc/compression.c:99:
undefined reference
to `_uncompress'
Info: resolving ___progname by linking to __imp____progname
(auto-import)
Info: resolving _optind by linking to __imp__optind
(auto-import)
Info: resolving _optreset by linking to __imp__optreset
(auto-import)
Info: resolving _optarg by linking to __imp__optarg
(auto-import)
collect2: ld returned 1 exit status
make: *** [ssh.exe] Error 1

dandan-5d81add802f ~/openssh-4.7p1
$







> -----Original Message-----
> From: opensc-user-bounceslists.opensc-project.org
[mailto:opensc-user-
> bounceslists.opensc-project.org] On Behalf Of Marcin
Cieslak
> Sent: Thursday, March 06, 2008 6:42 AM
> To: opensc-useropensc-project.org
> Subject: Re: [opensc-user] Compiling OpenSSH/OpenSC
>
> Dan Peterson wrote:
> > Should I use the develop list for questions about
compiling openSC?
>
> Can you be a bit more specific about the problem?
>
> --Marcin
>
> _______________________________________________
> opensc-user mailing list
> opensc-userlists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-
user



_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-06 12:38:02
Am Donnerstag, 6. März 2008 04:58:09 schrieb Dan Peterson:
> Should I use the develop list for questions about
compiling openSC?

if you changed the code: yes please.

for compiling of the unchanged source code, either list is
fine.
devel has a few more active people, so it might be the
better choice.

but: never send mails to both lists, so we don't waste time
by reading the 
same mail twice.

Regards, Andreas
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-06 12:44:26
Am Donnerstag, 6. März 2008 19:16:54 schrieb Dan Peterson:
> Okay;
> I have in a cygwin environment...

hi dan. I can't remember that anyone tried compiling opensc
under cygwin,
so it is well possible that we have problems over there.

> I can compile OPenSC
> $ ./configure
> $ make
> $ make install
> No problem.

wow, I didn't expect that, good to hear!

> But when I try and compile OpenSSH with opensc support:
> $./configure --with-opensc=/usr/local
--with-ipv4-default
> --with-md5-password
> $ make

side note: you patched openssh? otherwise it will not ask
for the pin
(only ssh-add will do so). opensc includes the patch.

> I get errors:
>
> gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o
> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -l
> ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o -lcrypt
> -L/usr/local/lib -lopensc
> /usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_unbind':
> /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:783:
undefined reference to
> `_lt_dlclose'

ah, a problem with openssh. it doesn't know that opensc
itself uses libltdl,
and when it tries to link with libopensc, it needs to link
with 
both -lopensc -lltdl. 

these days modern applications use "pkg-config"
and *.pc files to evade the 
problem - opensc for example includes "opensc.pc"
file where this information
is present. but openssh isn't modern it that respect, I
guess.

so what you need to do is edit Makefile.in and look for
"-lopensc". Replace 
that with "-lopensc -lltdl" and you should be
fine.

note: maybe also "-lpcsc" is needed - no idea.

good luck! and please let us know if this helped you and
what the result is.

Thanks, Andreas
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
country flaguser name
United States
2008-03-06 14:24:28
I will try and respond in line here; but first thanks for
the reply and all the help from everyone...


> > I can compile OPenSC
> > $ ./configure
> > $ make
> > $ make install
> > No problem.
> 
> wow, I didn't expect that, good to hear!

I don’t want to miss lead you; I was able to do the make
and make install the exe's are /usr/local/bin there but I am
in a disposable environment (I am running XP/cygwin in a VM)
and don’t have good access to the USB port so I can't test
against the eToken I have. Need more testing but at least I
can compile without error...

dandan-5d81add802f /usr/local/bin
$ ls -l
total 16565
-rwxr-xr-x 1 dan None 1387463 Mar  4 11:17 cardos-info.exe
-rwxr-xr-x 1 dan None 1443481 Mar  4 11:18
cryptoflex-tool.exe
-rwxr-xr-x 1 dan None 1387707 Mar  4 11:17 eidenv.exe
-rwxr-xr-x 1 dan None 1406126 Mar  4 11:18 netkey-tool.exe
-rwxr-xr-x 1 dan None    1904 Mar  4 11:16 opensc-config
-rwxr-xr-x 1 dan None 1421968 Mar  4 11:17
opensc-explorer.exe
-rwxr-xr-x 1 dan None 1395345 Mar  4 11:17 opensc-tool.exe
-rwxr-xr-x 1 dan None 1399950 Mar  4 11:18 piv-tool.exe
-rwxr-xr-x 1 dan None 1574479 Mar  4 11:17 pkcs11-tool.exe
-rwxr-xr-x 1 dan None 1407942 Mar  4 11:17 pkcs15-crypt.exe
-rwxr-xr-x 1 dan None 1869961 Mar  4 11:18 pkcs15-init.exe
-rwxr-xr-x 1 dan None 1430059 Mar  4 11:17 pkcs15-tool.exe
-rwxr-xr-x 1 dan None   41984 Feb 29 12:20 scp.exe
-rwxr-xr-x 1 dan None   60416 Feb 29 12:20 sftp.exe
lrwxrwxrwx 1 dan None       9 Feb 29 12:20 slogin ->
./ssh.exe
-rwxr-xr-x 1 dan None   75776 Feb 29 12:20 ssh-add.exe
-rwxr-xr-x 1 dan None   61952 Feb 29 12:20 ssh-agent.exe
-rwxr-xr-x 1 dan None  100864 Feb 29 12:20 ssh-keygen.exe
-rwxr-xr-x 1 dan None  138240 Feb 29 12:20 ssh-keyscan.exe
-rwxr-xr-x 1 dan None  249344 Feb 29 12:20 ssh.exe 



> > But when I try and compile OpenSSH with opensc
support:
> > $./configure --with-opensc=/usr/local
--with-ipv4-default
> > --with-md5-password
> > $ make
> 
> side note: you patched openssh? otherwise it will not
ask for the pin
> (only ssh-add will do so). opensc includes the patch.

I am under the impression that openSSH 4.7p1 has that built
in by default these days; I could be wrong; testing needed,
if I could get openssh to compile... ;)


> 
> > I get errors:
> >
> > gcc -o ssh.exe ssh.o readconf.o clientloop.o
sshtty.o sshconnect.o
> > sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ 
-l
> > ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o -
> lcrypt
> > -L/usr/local/lib -lopensc
> > /usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_unbind':
> >
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:783:
undefined
> reference to
> > `_lt_dlclose'
> 
> ah, a problem with openssh. it doesn't know that opensc
itself uses
> libltdl,
> and when it tries to link with libopensc, it needs to
link with
> both -lopensc -lltdl.
> 
> these days modern applications use
"pkg-config" and *.pc files to evade
> the
> problem - opensc for example includes
"opensc.pc" file where this
> information
> is present. but openssh isn't modern it that respect, I
guess.
> 
> so what you need to do is edit Makefile.in and look for
"-lopensc".
> Replace
> that with "-lopensc -lltdl" and you should be
fine.

Cool that took out about half the errors ;) - progress

> 
> note: maybe also "-lpcsc" is needed - no
idea.
This is a problem.... pcsc wont "make" properly
and errors out so when I add this I get a this error from
openssh:

 gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o sshconnect1.o sshconnect2.o -L.
-Lopenbsd-compat/  -l
ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o -lcrypt -L/usr/local/lib -lopensc
-lltdl -lpcsc
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin
/bin/ld: cannot find -lpcsc
collect2: ld returned 1 exit status

So now I assume that it can't find the library and that
makes sense as it ant on the system... 
so how to get pcsc-lite to make.

> 
> good luck! and please let us know if this helped you
and what the
> result is.

Thanks for the help I will keep posting until I give up or
get it to work ;)
I am a newbe in this environment but really would like to
have openssh with opensc working...
 
Next to try is PKCS#11 patches from Alon Bar-Lev; he seems
to have done some good work.
 
> 
> Thanks, Andreas



_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-06 12:32:58
You can try my PKCS#11 patches for OpenSSH [1].
It works with OpenSC PKCS#11 provider.

[1] htt
p://alon.barlev.googlepages.com/openssh-pkcs11

On 3/6/08, Dan Peterson <drpetersones.net> wrote:
> Okay;
>  I have in a cygwin environment...
>
>  I can compile OPenSC
>  $ ./configure
>  $ make
>  $ make install
>  No problem.
>
>  I can compile OpenSSH - no problem (4.7p1)
>  $ ./configure
>  $ make
>  $ make install
>  No problem
>
>  But when I try and compile OpenSSH with opensc
support:
>  $./configure --with-opensc=/usr/local
--with-ipv4-default
>  --with-md5-password
>  $ make
>  I get errors:
>
>  gcc -o ssh.exe ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o
>  sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -l
>  ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o -lcrypt
>  -L/usr/local/lib -lopensc
>  /usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_unbind':
>  /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:783:
undefined reference to
>  `_lt_dlclose'
>  /usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_bind':
>  /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:713:
undefined reference to
>  `_scconf_find_blocks'
>  /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:721:
undefined reference to
>  `_scconf_get_bool'
>  /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:731:
undefined reference to
>  `_scconf_get_bool'
>  /home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:733:
undefined reference to
>  `_scconf_get_bool'
>  /usr/local/lib/libopensc.a(card.o): In function
`_sc_check_forced_protocol':
>  /home/dan/opensc-0.11.4/src/libopensc/card.c:910:
undefined reference to
>  `_scconf_get_str'
>  /usr/local/lib/libopensc.a(card.o): In function
`sc_get_conf_block':
>  /home/dan/opensc-0.11.4/src/libopensc/card.c:935:
undefined reference to
>  `_scconf_find_blocks'
>  /usr/local/lib/libopensc.a(ctx.o): In function
`load_dynamic_driver':
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:289:
undefined reference to
>  `_scconf_find_blocks'
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:297:
undefined reference to
>  `_scconf_get_str'
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:339:
undefined reference to
>  `_lt_dlopen'
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:346:
undefined reference to
>  `_lt_dlsym'
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:347:
undefined reference to
>  `_lt_dlsym'
>  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:357:
undefined reference to
>  `_lt_dlclose'
>
>  .....
>
>
>  /usr/local/lib/libopensc.a(pkcs15-wrap.o): In
function
>  `sc_pkcs15_derive_key':
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:103:
undefined reference
>  to `_EVP_CIPHER_key_length'
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:119:
undefined reference
>  to `_PKCS5_PBKDF2_HMAC_SHA1'
>  /usr/local/lib/libopensc.a(pkcs15-wrap.o): In function
`do_cipher':
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:144:
undefined reference
>  to `_EVP_CIPHER_CTX_block_size'
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:149:
undefined reference
>  to `_EVP_CipherUpdate'
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:157:
undefined reference
>  to `_EVP_CipherFinal'
>  /usr/local/lib/libopensc.a(pkcs15-actalis.o): In
function
>  `sc_pkcs15emu_actalis_init':
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-actalis.c:229:
undefined
>  reference to `_uncompress'
>  /usr/local/lib/libopensc.a(pkcs15-infocamere.o): In
function
>  `loadCertificate':
> 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-infocamere.c:53
2: undefined
>  reference to `_uncompress'
>  /usr/local/lib/libopensc.a(compression.o): In function
`sc_decompress':
> 
/home/dan/opensc-0.11.4/src/libopensc/compression.c:99:
undefined reference
>  to `_uncompress'
>  Info: resolving ___progname by linking to
__imp____progname (auto-import)
>  Info: resolving _optind by linking to __imp__optind
(auto-import)
>  Info: resolving _optreset by linking to
__imp__optreset (auto-import)
>  Info: resolving _optarg by linking to __imp__optarg
(auto-import)
>  collect2: ld returned 1 exit status
>  make: *** [ssh.exe] Error 1
>
>  dandan-5d81add802f ~/openssh-4.7p1
>  $
>
>
>
>
>
>
>
>  > -----Original Message-----
>  > From: opensc-user-bounceslists.opensc-project.org
[mailto:opensc-user-
>  > bounceslists.opensc-project.org] On Behalf Of
Marcin Cieslak
>  > Sent: Thursday, March 06, 2008 6:42 AM
>  > To: opensc-useropensc-project.org
>  > Subject: Re: [opensc-user] Compiling
OpenSSH/OpenSC
>  >
>  > Dan Peterson wrote:
>  > > Should I use the develop list for questions
about compiling openSC?
>  >
>  > Can you be a bit more specific about the
problem?
>  >
>  > --Marcin
>  >
>  > _______________________________________________
>  > opensc-user mailing list
>  > opensc-userlists.opensc-project.org
>  > http://www.opensc-project.org/mailman/listinfo/opensc-
user
>
>
>
> _______________________________________________
>  opensc-user mailing list
>  opensc-userlists.opensc-project.org
>  http://www.opensc-project.org/mailman/listinfo/opensc-
user
>
>
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

Re: Compiling OpenSSH/OpenSC
country flaguser name
United States
2008-03-06 19:10:48
Alon,
Thanks for your patches and your help.

I was able to "patch" the files (I had a UNIX
friend help me.)
I was able to do the
./configure
Make
Make install
No errors...

Anyway, if I do a
ssh -I 0
I get "no smart card support"

So was I suppose to ./configure --with-opensc after the
patches?
Does this mean I munged the patch?

Not sure what to do from here
--
Dan


> -----Original Message-----
> From: Alon Bar-Lev [mailto:alon.barlevgmail.com]
> Sent: Thursday, March 06, 2008 10:33 AM
> To: drpetersones.net
> Cc: Marcin Cieslak; opensc-useropensc-project.org
> Subject: Re: [opensc-user] Compiling OpenSSH/OpenSC
>
> You can try my PKCS#11 patches for OpenSSH [1].
> It works with OpenSC PKCS#11 provider.
>
> [1] htt
p://alon.barlev.googlepages.com/openssh-pkcs11
>
> On 3/6/08, Dan Peterson <drpetersones.net> wrote:
> > Okay;
> >  I have in a cygwin environment...
> >
> >  I can compile OPenSC
> >  $ ./configure
> >  $ make
> >  $ make install
> >  No problem.
> >
> >  I can compile OpenSSH - no problem (4.7p1)
> >  $ ./configure
> >  $ make
> >  $ make install
> >  No problem
> >
> >  But when I try and compile OpenSSH with opensc
support:
> >  $./configure --with-opensc=/usr/local
--with-ipv4-default
> >  --with-md5-password
> >  $ make
> >  I get errors:
> >
> >  gcc -o ssh.exe ssh.o readconf.o clientloop.o
sshtty.o sshconnect.o
> >  sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/
 -l
> >  ssh -lopenbsd-compat -lresolv -lcrypto -lz 
/usr/lib/textreadmode.o
> -lcrypt
> >  -L/usr/local/lib -lopensc
> >  /usr/local/lib/libopensc.a(pkcs15.o): In
function
> `sc_pkcs15_unbind':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:783:
undefined
> reference to
> >  `_lt_dlclose'
> >  /usr/local/lib/libopensc.a(pkcs15.o): In function
`sc_pkcs15_bind':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:713:
undefined
> reference to
> >  `_scconf_find_blocks'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:721:
undefined
> reference to
> >  `_scconf_get_bool'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:731:
undefined
> reference to
> >  `_scconf_get_bool'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15.c:733:
undefined
> reference to
> >  `_scconf_get_bool'
> >  /usr/local/lib/libopensc.a(card.o): In function
> `_sc_check_forced_protocol':
> >  /home/dan/opensc-0.11.4/src/libopensc/card.c:910:
undefined
> reference to
> >  `_scconf_get_str'
> >  /usr/local/lib/libopensc.a(card.o): In function
`sc_get_conf_block':
> >  /home/dan/opensc-0.11.4/src/libopensc/card.c:935:
undefined
> reference to
> >  `_scconf_find_blocks'
> >  /usr/local/lib/libopensc.a(ctx.o): In function
> `load_dynamic_driver':
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:289:
undefined reference
> to
> >  `_scconf_find_blocks'
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:297:
undefined reference
> to
> >  `_scconf_get_str'
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:339:
undefined reference
> to
> >  `_lt_dlopen'
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:346:
undefined reference
> to
> >  `_lt_dlsym'
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:347:
undefined reference
> to
> >  `_lt_dlsym'
> >  /home/dan/opensc-0.11.4/src/libopensc/ctx.c:357:
undefined reference
> to
> >  `_lt_dlclose'
> >
> >  .....
> >
> >
> >  /usr/local/lib/libopensc.a(pkcs15-wrap.o): In
function
> >  `sc_pkcs15_derive_key':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:103:
undefined
> reference
> >  to `_EVP_CIPHER_key_length'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:119:
undefined
> reference
> >  to `_PKCS5_PBKDF2_HMAC_SHA1'
> >  /usr/local/lib/libopensc.a(pkcs15-wrap.o): In
function `do_cipher':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:144:
undefined
> reference
> >  to `_EVP_CIPHER_CTX_block_size'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:149:
undefined
> reference
> >  to `_EVP_CipherUpdate'
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-wrap.c:157:
undefined
> reference
> >  to `_EVP_CipherFinal'
> >  /usr/local/lib/libopensc.a(pkcs15-actalis.o): In
function
> >  `sc_pkcs15emu_actalis_init':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-actalis.c:229:
> undefined
> >  reference to `_uncompress'
> >  /usr/local/lib/libopensc.a(pkcs15-infocamere.o):
In function
> >  `loadCertificate':
> > 
/home/dan/opensc-0.11.4/src/libopensc/pkcs15-infocamere.c:53
2:
> undefined
> >  reference to `_uncompress'
> >  /usr/local/lib/libopensc.a(compression.o): In
function
> `sc_decompress':
> > 
/home/dan/opensc-0.11.4/src/libopensc/compression.c:99:
undefined
> reference
> >  to `_uncompress'
> >  Info: resolving ___progname by linking to
__imp____progname (auto-
> import)
> >  Info: resolving _optind by linking to
__imp__optind (auto-import)
> >  Info: resolving _optreset by linking to
__imp__optreset (auto-
> import)
> >  Info: resolving _optarg by linking to
__imp__optarg (auto-import)
> >  collect2: ld returned 1 exit status
> >  make: *** [ssh.exe] Error 1
> >
> >  dandan-5d81add802f ~/openssh-4.7p1
> >  $
> >
> >
> >
> >
> >
> >
> >
> >  > -----Original Message-----
> >  > From: opensc-user-bounceslists.opensc-project.org [mailto:opensc-
> user-
> >  > bounceslists.opensc-project.org] On Behalf Of
Marcin Cieslak
> >  > Sent: Thursday, March 06, 2008 6:42 AM
> >  > To: opensc-useropensc-project.org
> >  > Subject: Re: [opensc-user] Compiling
OpenSSH/OpenSC
> >  >
> >  > Dan Peterson wrote:
> >  > > Should I use the develop list for
questions about compiling
> openSC?
> >  >
> >  > Can you be a bit more specific about the
problem?
> >  >
> >  > --Marcin
> >  >
> >  >
_______________________________________________
> >  > opensc-user mailing list
> >  > opensc-userlists.opensc-project.org
> >  > http://www.opensc-project.org/mailman/listinfo/opensc-
user
> >
> >
> >
> > _______________________________________________
> >  opensc-user mailing list
> >  opensc-userlists.opensc-project.org
> >  http://www.opensc-project.org/mailman/listinfo/opensc-
user
> >
> >



_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-07 00:59:08
Am Donnerstag, 6. März 2008 21:24:28 schrieb Dan Peterson:
> > note: maybe also "-lpcsc" is needed - no
idea.
>
> This is a problem.... pcsc wont "make"
properly and errors out so when I
> add this I get a this error from openssh:

pcsc-lite won't work. you need the microsoft PC/SC
implementation, which is 
shipped with the plattform sdk. so try to link with that
one.

of course I wonder what use it might be to try cygwin at
all, if you need to 
link with pcsc from microsoft plattform sdk.

easier than trying cygwin could be:
 - use our native installer package SCB which contains
opensc, putty, openssl
   and friends.
 - use latest opensc svn with a mingw setup, this might lead
to a working
   opensc (someone tested and said it was ok).

> So now I assume that it can't find the library and that
makes sense as it
> ant on the system... so how to get pcsc-lite to make.

don't try, to my knowledge pcsc-lite is not written for
windows. use the
windows pcsc implementation, they should be compatible. the
runtime
is included in windows itself (except 98 and me and older I
think), and
the development part is in the plattform sdk.

> Thanks for the help I will keep posting until I give up
or get it to work
> ;) I am a newbe in this environment but really would
like to have openssh
> with opensc working...

any reason for not using putty instead of openssh on
windows?

good luck!

Andreas
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Compiling OpenSSH/OpenSC
user name
2008-03-07 01:25:42
On 3/7/08, Dan Peterson <drpetersones.net> wrote:
> Alon,
>  Thanks for your patches and your help.
>
>  I was able to "patch" the files (I had a
UNIX friend help me.)

You need also build pkcs11-helper [1].

> I was able to do the
>
> ./configure

Add:
--with-pkcs11

>  Anyway, if I do a
>  ssh -I 0
>  I get "no smart card support"

Please read README.pkcs11, the command sequence is
different.

For simple test you should ssh -# opensc-pkcs11.dll host

Alon.
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

[1-10] [11-20] [21-30] [31-40] [41]

about | contact  Other archives ( Real Estate discussion Medical topics )