File: README

package info (click to toggle)
libp11 0.4.16-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,816 kB
  • sloc: ansic: 11,965; sh: 6,207; makefile: 210
file content (23 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Libp11 example code
===================

This directory contains some example code how to use libp11.

auth.c		Example for authentication, i.e. get the first
		token, get the first certificate, ask for pin,
		login, sign some random data, and verify the
		signature using the certificate/public key.

For easy building see the Makefile in this directory. If you
are using autoconf/automake/libtool, you might want to add
to your configure.ac file:

PKG_CHECK_MODULES([LIBP11], [libp11])

and to your Makefile.am:

bin_PROGRAMS = myapp

myapp_CFLAGS = @LIBP11_CFLAGS@
myapp_LIBADD = @LIBP11_LIBS@
myapp_SOURCES = myapp.c