libykpers_1_la_SOURCES += rfc4634/hmac.c rfc4634/usha.c rfc4634/sha.h \
rfc4634/sha1.c rfc4634/sha224-256.c rfc4634/sha384-512.c \
rfc4634/sha-private.h
-libykpers_1_la_SOURCES += ykpers-1.pc.in
+libykpers_1_la_SOURCES += ykpers-1.pc.in libykpers-1.map
libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la
libykpers_1_la_LDFLAGS = -no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ykpers-1.pc
+if HAVE_LD_VERSION_SCRIPT
+libykpers_1_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libykpers-1.map
+else
+libykpers_1_la_LDFLAGS += -export-symbols-regex '^(ykp|yk|ykds)_.*'
+endif
+
# The command line tools.
bin_PROGRAMS = ykpersonalize
--- /dev/null
+# Written by Simon Josefsson <simon@yubico.com>.
+# Copyright (c) 2008, 2009 Yubico AB
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+LIBYKPERS_1.0 {
+ global:
+# Functions:
+ yk_close_key;
+ yk_endian_swap_16;
+ yk_force_key_update;
+ yk_get_status;
+ yk_init;
+ yk_open_first_key;
+ yk_pbkdf2;
+ yk_read_from_key;
+ yk_release;
+ yk_strerror;
+ yk_usb_strerror;
+ yk_write_config;
+ yk_write_to_key;
+ ykds_alloc;
+ ykds_free;
+ ykds_pgm_seq;
+ ykds_static;
+ ykds_touch_level;
+ ykds_version_build;
+ ykds_version_major;
+ ykds_version_minor;
+ ykp_AES_key_from_hex;
+ ykp_AES_key_from_passphrase;
+ ykp_config_num;
+ ykp_configure_for;
+ ykp_core_config;
+ ykp_create_config;
+ ykp_free_config;
+ ykp_read_config;
+ ykp_set_access_code;
+ ykp_set_cfgflag_ALLOW_HIDTRIG;
+ ykp_set_cfgflag_MAN_UPDATE;
+ ykp_set_cfgflag_PACING_10MS;
+ ykp_set_cfgflag_PACING_20MS;
+ ykp_set_cfgflag_SEND_REF;
+ ykp_set_cfgflag_SHORT_TICKET;
+ ykp_set_cfgflag_STATIC_TICKET;
+ ykp_set_cfgflag_STRONG_PW1;
+ ykp_set_cfgflag_STRONG_PW2;
+ ykp_set_cfgflag_TICKET_FIRST;
+ ykp_set_fixed;
+ ykp_set_tktflag_APPEND_CR;
+ ykp_set_tktflag_APPEND_DELAY1;
+ ykp_set_tktflag_APPEND_DELAY2;
+ ykp_set_tktflag_APPEND_TAB1;
+ ykp_set_tktflag_APPEND_TAB2;
+ ykp_set_tktflag_PROTECT_CFG2;
+ ykp_set_tktflag_TAB_FIRST;
+ ykp_set_uid;
+ ykp_strerror;
+ ykp_write_config;
+
+# Variables:
+ _yk_errno_location;
+ _ykp_errno_location;
+
+ local:
+ *;
+};