summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwyllys <none@none>2007-03-26 19:04:02 -0700
committerwyllys <none@none>2007-03-26 19:04:02 -0700
commit0dadacbf99d149ded48ff1ca271f5cdf159e6871 (patch)
treecdd319d4b9fe72c4281335c0d1643e317b6ef9f3
parentaa59c4cb15a6ac5d4e585dadf7a055b580abf579 (diff)
downloadillumos-joyent-0dadacbf99d149ded48ff1ca271f5cdf159e6871.tar.gz
PSARC 2007/170 libelfsign/libike contract cancellation
6246343 elfsign should not depend on libike
-rw-r--r--usr/src/Makefile2
-rw-r--r--usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com14
-rw-r--r--usr/src/uts/common/sys/crypto/elfsign.h19
3 files changed, 11 insertions, 24 deletions
diff --git a/usr/src/Makefile b/usr/src/Makefile
index b69335d869..3cb396d288 100644
--- a/usr/src/Makefile
+++ b/usr/src/Makefile
@@ -251,7 +251,6 @@ EXPORT_SRC:
@cd lib/pam_modules/krb5; pwd; $(MAKE) EXPORT_SRC
@cd lib/udapl; pwd; $(MAKE) EXPORT_SRC
@cd lib/libresolv2; pwd; $(MAKE) EXPORT_SRC
- @cd $(CLOSED)/tools/elfsign; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/des; pwd; $(MAKE) EXPORT_SRC
@cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC
@@ -317,7 +316,6 @@ CRYPT_SRC:
@cd lib/libresolv2; pwd; $(MAKE) CRYPT_SRC
@cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC
@cd lib/pam_modules/krb5; pwd; $(MAKE) CRYPT_SRC
- @cd $(CLOSED)/tools/elfsign; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi/include; pwd; $(MAKE) CRYPT_SRC
@cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) CRYPT_SRC
diff --git a/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com b/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com
index 4acb3947c8..99f4a6bd55 100644
--- a/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com
+++ b/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com
@@ -20,7 +20,7 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -32,15 +32,3 @@ VERS= .1
include ../../Makefile.softtoken.com
-PICLIBRARY = $(LIBRARY:%.a=%.pic.a)
-
-CLEANFILES += $(PICLIBRARY)
-
-all: $(PICLIBRARY)
-
-#
-# Build archive library for libelfsign to link with staticly
-#
-$(PICLIBRARY): $(PICS)
- $(RM) $@
- $(AR) -rc $@ $(PICS)
diff --git a/usr/src/uts/common/sys/crypto/elfsign.h b/usr/src/uts/common/sys/crypto/elfsign.h
index 2f5c6681e0..1253ec4655 100644
--- a/usr/src/uts/common/sys/crypto/elfsign.h
+++ b/usr/src/uts/common/sys/crypto/elfsign.h
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -165,8 +165,8 @@ extern struct filesignatures *elfsign_insert_dso(ELFsign_t ess,
const uchar_t *sig, int sig_len, const char *oid, int oid_len);
extern filesig_vers_t elfsign_extract_sig(ELFsign_t ess,
struct filesignatures *fsp, uchar_t *sig, size_t *sig_len);
-extern ELFsign_status_t elfsign_begin(const char *filename,
- const char *certpath, enum ES_ACTION action, ELFsign_t *essp);
+extern ELFsign_status_t elfsign_begin(const char *,
+ const char *, char *, enum ES_ACTION, ELFsign_t *);
extern void elfsign_end(ELFsign_t ess);
extern ELFsign_status_t elfsign_verify_signature(ELFsign_t ess,
struct ELFsign_sig_info **esipp);
@@ -198,20 +198,21 @@ extern const char _PATH_ELFSIGN_CERTS[];
typedef struct ELFCert_s *ELFCert_t;
-extern boolean_t elfcertlib_init(void);
+extern boolean_t elfcertlib_init(ELFsign_t, char *);
-extern boolean_t elfcertlib_loadcert(ELFCert_t *certp, const char *pathname);
-extern void elfcertlib_releasecert(ELFCert_t cert);
+extern boolean_t elfcertlib_loadcert(ELFsign_t, ELFCert_t *, const char *);
+extern void elfcertlib_releasecert(ELFsign_t, ELFCert_t);
extern char *elfcertlib_getdn(ELFCert_t cert);
extern char *elfcertlib_getissuer(ELFCert_t cert);
extern boolean_t elfcertlib_loadprivatekey(ELFsign_t ess, ELFCert_t cert,
- const char *path);
+ const char *path);
extern boolean_t elfcertlib_loadtokenkey(ELFsign_t ess, ELFCert_t cert,
- const char *token_id, const char *pin);
+ const char *token_id, const char *pin);
extern boolean_t elfcertlib_sign(ELFsign_t ess, ELFCert_t cert,
- const uchar_t *data, size_t data_len, uchar_t *sig, size_t *sig_len);
+ const uchar_t *data, size_t data_len, uchar_t *sig,
+ size_t *sig_len);
#endif /* _KERNEL */