head	1.6;
access;
symbols
	netbsd-11-0-RC6:1.6
	netbsd-11-0-RC5:1.6
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.2
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.3.10.2
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.2
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3.10.2
	netbsd-10-0-RC6:1.3.10.2
	netbsd-10-0-RC5:1.3.10.2
	netbsd-10-0-RC4:1.3.10.2
	netbsd-10-0-RC3:1.3.10.2
	netbsd-10-0-RC2:1.3.10.2
	netbsd-10-0-RC1:1.3.10.2
	netbsd-10:1.3.0.10
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.8
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.6
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.4
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.2
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.2.2.1
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.2.0.4
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.2.0.2
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.1
	matt-nb8-mediatek:1.1.0.40
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.38
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.36
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.34
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.0.32
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.1.0.30
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	netbsd-7-1-RC1:1.1
	pgoyette-localcount-20161104:1.1
	netbsd-7-0-2-RELEASE:1.1
	localcount-20160914:1.1
	netbsd-7-nhusb:1.1.0.28
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.26
	pgoyette-localcount-base:1.1
	netbsd-7-0-1-RELEASE:1.1
	netbsd-7-0:1.1.0.24
	netbsd-7-0-RELEASE:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.1.0.22
	netbsd-7-base:1.1
	yamt-pagecache-base9:1.1
	yamt-pagecache-tag8:1.1.4.2
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.1.0.20
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.12
	riastradh-drm2-base:1.1
	netbsd-6-1:1.1.0.18
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	khorben-n900:1.1.0.16
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.1.0.14
	agc-symver-base:1.1
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.1
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.1
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.1
	netbsd-6-0:1.1.0.10
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.8
	tls-maxphys-base:1.1
	matt-nb6-plus:1.1.0.6
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache:1.1.0.4
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.2
	netbsd-6-base:1.1;
locks; strict;
comment	@# @;


1.6
date	2025.07.14.10.25.51;	author kre;	state Exp;
branches;
next	1.5;
commitid	mQfuBzjsAhFHuH2G;

1.5
date	2023.09.04.18.12.46;	author riastradh;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	05GKzj84Np93UtDE;

1.4
date	2023.08.10.06.56.12;	author riastradh;	state Exp;
branches;
next	1.3;
commitid	tBk97x65VxwMXcAE;

1.3
date	2019.01.07.15.43.17;	author christos;	state Exp;
branches
	1.3.10.1;
next	1.2;
commitid	UhalRmXOxBLGKR6B;

1.2
date	2018.02.04.03.19.52;	author christos;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;
commitid	VEHjCiwlUMjetupA;

1.1
date	2012.01.28.02.15.26;	author christos;	state Exp;
branches
	1.1.4.1;
next	;

1.5.2.1
date	2025.08.02.05.20.17;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.3.10.1
date	2023.08.11.15.07.06;	author martin;	state Exp;
branches;
next	1.3.10.2;
commitid	eottRgYqhh5dEnAE;

1.3.10.2
date	2023.09.05.17.18.21;	author martin;	state Exp;
branches;
next	;
commitid	EEAaVthWkz1ozBDE;

1.2.2.1
date	2019.01.18.08.48.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.2.4.1
date	2019.06.10.21.42.15;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.4.1
date	2012.01.28.02.15.26;	author yamt;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2012.04.17.00.02.23;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.6
log
@More prep for moving openssl from crypto/bsd to crypto/apache2

Find all the remaining places that used bsd/${EXTERNAL_OPENSSL_SUBDIR}
and (except for one, which shouldn't have been using the variable)
remove the "bsd/" prefix, which is now included in EXTERNAL_OPENSSL_SUBDIR
@
text
@# $NetBSD: Makefile,v 1.5 2023/09/04 18:12:46 riastradh Exp $
.include "../Makefile.inc"

CPPFLAGS+=-DAPPID=\"TSPI\" -DVAR_PREFIX=\"/var\" -DETC_PREFIX=\"/etc\"
CPPFLAGS+=-DTSS_BUILD_TSS12 -DTSS_BUILD_TRANSPORT -DTSS_BUILD_TICK
CPPFLAGS+=-DTSS_BUILD_COUNTER -DTSS_BUILD_AUTH -DTSS_BUILD_GETSET
CPPFLAGS+=-DTSS_BUILD_RANDOM -DTSS_BUILD_CAPS -DTSS_BUILD_CAPS_TPM
CPPFLAGS+=-DTSS_BUILD_POLICY -DTSS_BUILD_DIR -DTSS_BUILD_PCR_EVENTS
CPPFLAGS+=-DTSS_BUILD_HASH -DTSS_BUILD_SIGN -DTSS_BUILD_QUOTE
CPPFLAGS+=-DTSS_BUILD_PCR_COMP -DTSS_BUILD_SEAL -DTSS_BUILD_CHANGEAUTH
CPPFLAGS+=-DTSS_BUILD_BIND -DTSS_BUILD_OWN -DTSS_BUILD_PS -DTSS_BUILD_ADMIN
CPPFLAGS+=-DTSS_BUILD_AIK -DTSS_BUILD_EK  -DTSS_BUILD_CERTIFY -DTSS_BUILD_KEY
CPPFLAGS+=-DTSS_BUILD_MAINT  -DTSS_BUILD_MIGRATION -DTSS_BUILD_PCR_EXTEND
CPPFLAGS+=-DTSS_BUILD_SELFTEST -DTSS_BUILD_PCRS_LIST -DTSS_BUILD_HASH_LIST
CPPFLAGS+=-DTSS_BUILD_ENCDATA_LIST -DTSS_BUILD_RSAKEY_LIST -DTSS_BUILD_ASN1
CPPFLAGS+=-DTSS_BUILD_AUDIT -DTSS_BUILD_SEALX -DTSS_BUILD_QUOTE2
CPPFLAGS+=-DTSS_BUILD_NV -DTSS_BUILD_DELEGATION -DTSS_BUILD_CMK

COPTS.rpc.c+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
COPTS.hash.c+=	-Wno-error=deprecated-declarations # openssl3 PKCS1_MGF
COPTS.rsa.c+=	-Wno-error=deprecated-declarations # openssl3 RSA_*

TSPI=${DIST}/src/tspi 
TRSPI=${DIST}/src/trspi 
.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl

SHLIB_MAJOR=4
SHLIB_MINOR=0

LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
LIB=tspi
SRCS=\
hosttable.c \
log.c \
obj.c \
obj_context.c \
obj_delfamily.c \
obj_encdata.c \
obj_hash.c \
obj_migdata.c \
obj_nv.c \
obj_pcrs.c \
obj_policy.c \
obj_rsakey.c \
obj_tpm.c \
ps_utils.c \
rpc.c \
rpc_admin.c \
rpc_aik.c \
rpc_audit.c \
rpc_auth.c \
rpc_bind.c \
rpc_caps.c \
rpc_caps_tpm.c \
rpc_certify.c \
rpc_changeauth.c \
rpc_cmk.c \
rpc_context.c \
rpc_counter.c \
rpc_delegate.c \
rpc_dir.c \
rpc_ek.c \
rpc_evlog.c \
rpc_key.c \
rpc_maint.c \
rpc_migration.c \
rpc_nv.c \
rpc_oper.c \
rpc_own.c \
rpc_pcr_extend.c \
rpc_ps.c \
rpc_quote.c \
rpc_quote2.c \
rpc_random.c \
rpc_seal.c \
rpc_selftest.c \
rpc_sign.c \
rpc_tick.c \
rpc_transport.c \
spi_utils.c \
ssl_ui.c \
tcs_api.c \
tsp_admin.c \
tsp_aik.c \
tsp_asym.c \
tsp_audit.c \
tsp_auth.c \
tsp_bind.c \
tsp_caps.c \
tsp_caps_tpm.c \
tsp_certify.c \
tsp_changeauth.c \
tsp_context_mem.c \
tsp_counter.c \
tsp_delegate.c \
tsp_dir.c \
tsp_ek.c \
tsp_get_flags.c \
tsp_key.c \
tsp_maint.c \
tsp_migration.c \
tsp_nv.c \
tsp_oper.c \
tsp_own.c \
tsp_pcr.c \
tsp_pcr_extend.c \
tsp_policy.c \
tsp_ps.c \
tsp_quote.c \
tsp_quote2.c \
tsp_random.c \
tsp_seal.c \
tsp_selftest.c \
tsp_sign.c \
tsp_tcsi_param.c \
tsp_tick.c \
tspi_admin.c \
tspi_aik.c \
tspi_asn1.c \
tspi_audit.c \
tspi_bind.c \
tspi_caps.c \
tspi_caps_tpm.c \
tspi_certify.c \
tspi_changeauth.c \
tspi_cmk.c \
tspi_context.c \
tspi_counter.c \
tspi_delegate.c \
tspi_dir.c \
tspi_ek.c \
tspi_getset.c \
tspi_hash.c \
tspi_key.c \
tspi_maint.c \
tspi_migration.c \
tspi_nv.c \
tspi_oper.c \
tspi_own.c \
tspi_pcr_comp.c \
tspi_pcr_comp12.c \
tspi_pcr_events.c \
tspi_pcr_extend.c \
tspi_policy.c \
tspi_ps.c \
tspi_quote.c \
tspi_quote2.c \
tspi_random.c \
tspi_seal.c \
tspi_selftest.c \
tspi_sign.c \
tspi_tick.c \
tspi_transport.c \
tspps.c \
hash.c \
rsa.c \
symmetric.c \
trousers.c 

.SUFFIXES: .h
.PATH.h: ${DIST}/src/include
INCSDIR=/usr/include
INCS=\
trousers/trousers.h \
trousers/tss.h \
tss/compat11b.h \
tss/platform.h \
tss/tcpa_defines.h \
tss/tcpa_error.h \
tss/tcpa_struct.h \
tss/tcpa_typedef.h \
tss/tcs.h \
tss/tcs_defines.h \
tss/tcs_error.h \
tss/tcs_structs.h \
tss/tcs_typedef.h \
tss/tddl_error.h \
tss/tddlapi_error.h \
tss/tddli.h \
tss/tpm.h \
tss/tpm_error.h \
tss/tpm_ordinal.h \
tss/tspi.h \
tss/tss_defines.h \
tss/tss_error.h \
tss/tss_error_basics.h \
tss/tss_structs.h \
tss/tss_typedef.h

.SUFFIXES: .3
.PATH.3: ${DIST}/man/man3
MAN=\
Tspi_ChangeAuth.3 \
Tspi_ChangeAuthAsym.3 \
Tspi_Context_Close.3 \
Tspi_Context_CloseObject.3 \
Tspi_Context_Connect.3 \
Tspi_Context_Create.3 \
Tspi_Context_CreateObject.3 \
Tspi_Context_FreeMemory.3 \
Tspi_Context_GetCapability.3 \
Tspi_Context_GetDefaultPolicy.3 \
Tspi_Context_GetKeyByPublicInfo.3 \
Tspi_Context_GetKeyByUUID.3 \
Tspi_Context_GetRegisteredKeysByUUID.3 \
Tspi_Context_GetRegisteredKeysByUUID2.3 \
Tspi_Context_GetTpmObject.3 \
Tspi_Context_LoadKeyByBlob.3 \
Tspi_Context_LoadKeyByUUID.3 \
Tspi_Context_RegisterKey.3 \
Tspi_Context_UnregisterKey.3 \
Tspi_DAA_IssueCredential.3 \
Tspi_DAA_IssueInit.3 \
Tspi_DAA_IssueSetup.3 \
Tspi_DAA_IssuerKeyVerification.3 \
Tspi_DAA_VerifyInit.3 \
Tspi_DAA_VerifySignature.3 \
Tspi_Data_Bind.3 \
Tspi_Data_Seal.3 \
Tspi_Data_Unbind.3 \
Tspi_Data_Unseal.3 \
Tspi_DecodeBER_TssBlob.3 \
Tspi_EncodeDER_TssBlob.3 \
Tspi_GetAttribData.3 \
Tspi_GetAttribUint32.3 \
Tspi_GetPolicyObject.3 \
Tspi_Hash_GetHashValue.3 \
Tspi_Hash_SetHashValue.3 \
Tspi_Hash_Sign.3 \
Tspi_Hash_UpdateHashValue.3 \
Tspi_Hash_VerifySignature.3 \
Tspi_Key_CertifyKey.3 \
Tspi_Key_ConvertMigrationBlob.3 \
Tspi_Key_CreateKey.3 \
Tspi_Key_CreateMigrationBlob.3 \
Tspi_Key_GetPubKey.3 \
Tspi_Key_LoadKey.3 \
Tspi_Key_UnloadKey.3 \
Tspi_Key_WrapKey.3 \
Tspi_PcrComposite_GetPcrValue.3 \
Tspi_PcrComposite_SelectPcrIndex.3 \
Tspi_PcrComposite_SetPcrValue.3 \
Tspi_Policy_AssignToObject.3 \
Tspi_Policy_FlushSecret.3 \
Tspi_Policy_SetSecret.3 \
Tspi_SetAttribData.3 \
Tspi_SetAttribUint32.3 \
Tspi_TPM_AuthorizeMigrationTicket.3 \
Tspi_TPM_CMKSetRestrictions.3 \
Tspi_TPM_CertifySelfTest.3 \
Tspi_TPM_CheckMaintenancePubKey.3 \
Tspi_TPM_ClearOwner.3 \
Tspi_TPM_CollateIdentityRequest.3 \
Tspi_TPM_CreateEndorsementKey.3 \
Tspi_TPM_CreateMaintenanceArchive.3 \
Tspi_TPM_DAA_JoinCreateDaaPubKey.3 \
Tspi_TPM_DAA_JoinInit.3 \
Tspi_TPM_DAA_JoinStoreCredential.3 \
Tspi_TPM_DAA_Sign.3 \
Tspi_TPM_DirRead.3 \
Tspi_TPM_DirWrite.3 \
Tspi_TPM_GetAuditDigest.3 \
Tspi_TPM_GetCapability.3 \
Tspi_TPM_GetEvent.3 \
Tspi_TPM_GetEventLog.3 \
Tspi_TPM_GetEvents.3 \
Tspi_TPM_GetPubEndorsementKey.3 \
Tspi_TPM_GetRandom.3 \
Tspi_TPM_GetStatus.3 \
Tspi_TPM_GetTestResult.3 \
Tspi_TPM_KillMaintenanceFeature.3 \
Tspi_TPM_LoadMaintenancePubKey.3 \
Tspi_TPM_OwnerGetSRKPubKey.3 \
Tspi_TPM_PcrExtend.3 \
Tspi_TPM_PcrRead.3 \
Tspi_TPM_Quote.3 \
Tspi_TPM_SelfTestFull.3 \
Tspi_TPM_SetStatus.3 \
Tspi_TPM_StirRandom.3 \
Tspi_TPM_TakeOwnership.3

.include <bsd.lib.mk>
@


1.5
log
@Recursively revbump all dependents of libcrypto.

Otherwise any existing software linked against the openssl11
libcrypto.so.14 and any of these libraries will suddenly start
pulling in libcrypto.so.15 at the same time, leading to mayhem in the
address space.

PR lib/57603

XXX pullup-10
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/08/10 06:56:12 riastradh Exp $
d25 1
a25 1
.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/${EXTERNAL_OPENSSL_SUBDIR}
d30 1
a30 1
LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
@


1.5.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2025/07/14 10:25:51 kre Exp $
d25 1
a25 1
.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl
d30 1
a30 1
LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
@


1.4
log
@trousers: Make this build again.

- Downgrade address-of-packed-member errors to warnings.  Not sure if
  this is safe, but there's too many to audit.

- Silence deprecation warnings for openssl3.

- Address removal of const qualifier in iconv.

- Nix unused definitions in a .h file, which cause trouble now that
  -fno-common is the default.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/01/07 15:43:17 christos Exp $
d27 1
a27 1
SHLIB_MAJOR=3
@


1.3
log
@new config file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/02/04 03:19:52 christos Exp $
d19 4
@


1.3.10.1
log
@Pull up following revision(s) (requested by riastradh in ticket #323):

	crypto/external/cpl/trousers/dist/src/include/tcsd.h: revision 1.4
	crypto/external/cpl/trousers/lib/libtcs/Makefile: revision 1.2
	crypto/external/cpl/trousers/dist/src/include/trousers_types.h: revision 1.4
	crypto/external/cpl/trousers/bin/tcsd/Makefile: revision 1.3
	crypto/external/cpl/trousers/lib/libtspi/Makefile: revision 1.4
	(all via patch)

trousers: Make this build again.
- Downgrade address-of-packed-member errors to warnings.  Not sure if
  this is safe, but there's too many to audit.
- Silence deprecation warnings for openssl3.
- Address removal of const qualifier in iconv.
- Nix unused definitions in a .h file, which cause trouble now that
  -fno-common is the default.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/01/07 15:43:17 christos Exp $
a18 4
COPTS.rpc.c+=	${NO_ADDR_OF_PACKED_MEMBER}
COPTS.hash.c+=	-Wno-error=deprecated-declarations # openssl3 PKCS1_MGF
COPTS.rsa.c+=	-Wno-error=deprecated-declarations # openssl3 RSA_*

@


1.3.10.2
log
@Pull up following revision(s) (requested by riastradh in ticket #346):

	external/mpl/bind/lib/libbind9/shlib_version: revision 1.12
	external/mpl/bind/lib/libisc/shlib_version: revision 1.12
	crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version: revision 1.3
	external/bsd/libevent/Makefile.inc: revision 1.5
	external/mpl/bind/lib/libdns/shlib_version: revision 1.12
	external/bsd/lutok/lib/liblutok/shlib_version: revision 1.3
	crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version: revision 1.3
	crypto/external/bsd/heimdal/lib/libkafs/shlib_version: revision 1.3
	distrib/sets/lists/debug/shl.mi: revision 1.325
	distrib/sets/lists/debug/shl.mi: revision 1.326
	external/bsd/openldap/lib/libldap_r/shlib_version: revision 1.8
	distrib/sets/lists/debug/shl.mi: revision 1.327
	external/bsd/unbound/lib/libunbound/shlib_version: revision 1.4
	external/bsd/libarchive/lib/libarchive/shlib_version: revision 1.3
	lib/libradius/shlib_version: revision 1.6
	crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version: revision 1.3
	crypto/external/bsd/libsaslc/lib/shlib_version: revision 1.2
	crypto/external/bsd/netpgp/libpaa/shlib_version: revision 1.2
	external/mpl/bind/lib/libisccc/shlib_version: revision 1.12
	external/mpl/bind/lib/libisccfg/shlib_version: revision 1.12
	crypto/external/cpl/trousers/lib/libtspi/Makefile: revision 1.5
	crypto/external/bsd/heimdal/lib/libsl/shlib_version: revision 1.3
	external/mpl/bind/lib/libns/shlib_version: revision 1.12
	crypto/external/bsd/heimdal/lib/libkrb5/shlib_version: revision 1.3
	crypto/external/bsd/heimdal/lib/libhdb/shlib_version: revision 1.3
	external/bsd/fetch/lib/shlib_version: revision 1.4
	external/bsd/openldap/lib/libldap/shlib_version: revision 1.8
	crypto/external/cpl/tpm-tools/lib/libtpm_unseal/Makefile: revision 1.4
	distrib/sets/lists/base/shl.mi: revision 1.965
	crypto/external/bsd/heimdal/lib/libkdc/shlib_version: revision 1.3
	distrib/sets/lists/base/shl.mi: revision 1.966
	crypto/external/bsd/heimdal/lib/libgssapi/shlib_version: revision 1.3
	distrib/sets/lists/base/shl.mi: revision 1.967
	external/mpl/bind/lib/libirs/shlib_version: revision 1.12
	crypto/external/bsd/netpgp/lib/netpgp/shlib_version: revision 1.3
	crypto/external/bsd/heimdal/lib/libhx509/shlib_version: revision 1.3
	(all via patch)

Recursively revbump all dependents of libcrypto.
Otherwise any existing software linked against the openssl11
libcrypto.so.14 and any of these libraries will suddenly start
pulling in libcrypto.so.15 at the same time, leading to mayhem in the
address space.

PR lib/57603

heimdal/libsl: Belatedly bump major.
This is to address the major bump of libterminfo.so.9 in:
Author: roy <roy%NetBSD.org@@localhost>
Date:   Fri Mar 13 15:19:24 2020 +0000
    terminfo: promote numeric parameters from short to int
That commit caught all the other dependent libraries except libsl.

liblutok.so: Bump major for recent Lua update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3.10.1 2023/08/11 15:07:06 martin Exp $
d27 1
a27 1
SHLIB_MAJOR=4
@


1.2
log
@switch everyone to openssl.old
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
d111 1
@


1.2.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/01/07 15:43:17 christos Exp $
a110 1
tsp_tcsi_param.c \
@


1.2.2.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/02/04 03:19:52 christos Exp $
a110 1
tsp_tcsi_param.c \
@


1.1
log
@add build glue
@
text
@d1 1
a1 1
# $NetBSD$
d21 1
a21 1
.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl
d26 1
a26 1
LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
@


1.1.4.1
log
@file Makefile was added on branch yamt-pagecache on 2012-04-17 00:02:23 +0000
@
text
@d1 277
@


1.1.4.2
log
@sync with head
@
text
@a0 277
# $NetBSD$
.include "../Makefile.inc"

CPPFLAGS+=-DAPPID=\"TSPI\" -DVAR_PREFIX=\"/var\" -DETC_PREFIX=\"/etc\"
CPPFLAGS+=-DTSS_BUILD_TSS12 -DTSS_BUILD_TRANSPORT -DTSS_BUILD_TICK
CPPFLAGS+=-DTSS_BUILD_COUNTER -DTSS_BUILD_AUTH -DTSS_BUILD_GETSET
CPPFLAGS+=-DTSS_BUILD_RANDOM -DTSS_BUILD_CAPS -DTSS_BUILD_CAPS_TPM
CPPFLAGS+=-DTSS_BUILD_POLICY -DTSS_BUILD_DIR -DTSS_BUILD_PCR_EVENTS
CPPFLAGS+=-DTSS_BUILD_HASH -DTSS_BUILD_SIGN -DTSS_BUILD_QUOTE
CPPFLAGS+=-DTSS_BUILD_PCR_COMP -DTSS_BUILD_SEAL -DTSS_BUILD_CHANGEAUTH
CPPFLAGS+=-DTSS_BUILD_BIND -DTSS_BUILD_OWN -DTSS_BUILD_PS -DTSS_BUILD_ADMIN
CPPFLAGS+=-DTSS_BUILD_AIK -DTSS_BUILD_EK  -DTSS_BUILD_CERTIFY -DTSS_BUILD_KEY
CPPFLAGS+=-DTSS_BUILD_MAINT  -DTSS_BUILD_MIGRATION -DTSS_BUILD_PCR_EXTEND
CPPFLAGS+=-DTSS_BUILD_SELFTEST -DTSS_BUILD_PCRS_LIST -DTSS_BUILD_HASH_LIST
CPPFLAGS+=-DTSS_BUILD_ENCDATA_LIST -DTSS_BUILD_RSAKEY_LIST -DTSS_BUILD_ASN1
CPPFLAGS+=-DTSS_BUILD_AUDIT -DTSS_BUILD_SEALX -DTSS_BUILD_QUOTE2
CPPFLAGS+=-DTSS_BUILD_NV -DTSS_BUILD_DELEGATION -DTSS_BUILD_CMK

TSPI=${DIST}/src/tspi 
TRSPI=${DIST}/src/trspi 
.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl

SHLIB_MAJOR=3
SHLIB_MINOR=0

LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
LIB=tspi
SRCS=\
hosttable.c \
log.c \
obj.c \
obj_context.c \
obj_delfamily.c \
obj_encdata.c \
obj_hash.c \
obj_migdata.c \
obj_nv.c \
obj_pcrs.c \
obj_policy.c \
obj_rsakey.c \
obj_tpm.c \
ps_utils.c \
rpc.c \
rpc_admin.c \
rpc_aik.c \
rpc_audit.c \
rpc_auth.c \
rpc_bind.c \
rpc_caps.c \
rpc_caps_tpm.c \
rpc_certify.c \
rpc_changeauth.c \
rpc_cmk.c \
rpc_context.c \
rpc_counter.c \
rpc_delegate.c \
rpc_dir.c \
rpc_ek.c \
rpc_evlog.c \
rpc_key.c \
rpc_maint.c \
rpc_migration.c \
rpc_nv.c \
rpc_oper.c \
rpc_own.c \
rpc_pcr_extend.c \
rpc_ps.c \
rpc_quote.c \
rpc_quote2.c \
rpc_random.c \
rpc_seal.c \
rpc_selftest.c \
rpc_sign.c \
rpc_tick.c \
rpc_transport.c \
spi_utils.c \
ssl_ui.c \
tcs_api.c \
tsp_admin.c \
tsp_aik.c \
tsp_asym.c \
tsp_audit.c \
tsp_auth.c \
tsp_bind.c \
tsp_caps.c \
tsp_caps_tpm.c \
tsp_certify.c \
tsp_changeauth.c \
tsp_context_mem.c \
tsp_counter.c \
tsp_delegate.c \
tsp_dir.c \
tsp_ek.c \
tsp_get_flags.c \
tsp_key.c \
tsp_maint.c \
tsp_migration.c \
tsp_nv.c \
tsp_oper.c \
tsp_own.c \
tsp_pcr.c \
tsp_pcr_extend.c \
tsp_policy.c \
tsp_ps.c \
tsp_quote.c \
tsp_quote2.c \
tsp_random.c \
tsp_seal.c \
tsp_selftest.c \
tsp_sign.c \
tsp_tick.c \
tspi_admin.c \
tspi_aik.c \
tspi_asn1.c \
tspi_audit.c \
tspi_bind.c \
tspi_caps.c \
tspi_caps_tpm.c \
tspi_certify.c \
tspi_changeauth.c \
tspi_cmk.c \
tspi_context.c \
tspi_counter.c \
tspi_delegate.c \
tspi_dir.c \
tspi_ek.c \
tspi_getset.c \
tspi_hash.c \
tspi_key.c \
tspi_maint.c \
tspi_migration.c \
tspi_nv.c \
tspi_oper.c \
tspi_own.c \
tspi_pcr_comp.c \
tspi_pcr_comp12.c \
tspi_pcr_events.c \
tspi_pcr_extend.c \
tspi_policy.c \
tspi_ps.c \
tspi_quote.c \
tspi_quote2.c \
tspi_random.c \
tspi_seal.c \
tspi_selftest.c \
tspi_sign.c \
tspi_tick.c \
tspi_transport.c \
tspps.c \
hash.c \
rsa.c \
symmetric.c \
trousers.c 

.SUFFIXES: .h
.PATH.h: ${DIST}/src/include
INCSDIR=/usr/include
INCS=\
trousers/trousers.h \
trousers/tss.h \
tss/compat11b.h \
tss/platform.h \
tss/tcpa_defines.h \
tss/tcpa_error.h \
tss/tcpa_struct.h \
tss/tcpa_typedef.h \
tss/tcs.h \
tss/tcs_defines.h \
tss/tcs_error.h \
tss/tcs_structs.h \
tss/tcs_typedef.h \
tss/tddl_error.h \
tss/tddlapi_error.h \
tss/tddli.h \
tss/tpm.h \
tss/tpm_error.h \
tss/tpm_ordinal.h \
tss/tspi.h \
tss/tss_defines.h \
tss/tss_error.h \
tss/tss_error_basics.h \
tss/tss_structs.h \
tss/tss_typedef.h

.SUFFIXES: .3
.PATH.3: ${DIST}/man/man3
MAN=\
Tspi_ChangeAuth.3 \
Tspi_ChangeAuthAsym.3 \
Tspi_Context_Close.3 \
Tspi_Context_CloseObject.3 \
Tspi_Context_Connect.3 \
Tspi_Context_Create.3 \
Tspi_Context_CreateObject.3 \
Tspi_Context_FreeMemory.3 \
Tspi_Context_GetCapability.3 \
Tspi_Context_GetDefaultPolicy.3 \
Tspi_Context_GetKeyByPublicInfo.3 \
Tspi_Context_GetKeyByUUID.3 \
Tspi_Context_GetRegisteredKeysByUUID.3 \
Tspi_Context_GetRegisteredKeysByUUID2.3 \
Tspi_Context_GetTpmObject.3 \
Tspi_Context_LoadKeyByBlob.3 \
Tspi_Context_LoadKeyByUUID.3 \
Tspi_Context_RegisterKey.3 \
Tspi_Context_UnregisterKey.3 \
Tspi_DAA_IssueCredential.3 \
Tspi_DAA_IssueInit.3 \
Tspi_DAA_IssueSetup.3 \
Tspi_DAA_IssuerKeyVerification.3 \
Tspi_DAA_VerifyInit.3 \
Tspi_DAA_VerifySignature.3 \
Tspi_Data_Bind.3 \
Tspi_Data_Seal.3 \
Tspi_Data_Unbind.3 \
Tspi_Data_Unseal.3 \
Tspi_DecodeBER_TssBlob.3 \
Tspi_EncodeDER_TssBlob.3 \
Tspi_GetAttribData.3 \
Tspi_GetAttribUint32.3 \
Tspi_GetPolicyObject.3 \
Tspi_Hash_GetHashValue.3 \
Tspi_Hash_SetHashValue.3 \
Tspi_Hash_Sign.3 \
Tspi_Hash_UpdateHashValue.3 \
Tspi_Hash_VerifySignature.3 \
Tspi_Key_CertifyKey.3 \
Tspi_Key_ConvertMigrationBlob.3 \
Tspi_Key_CreateKey.3 \
Tspi_Key_CreateMigrationBlob.3 \
Tspi_Key_GetPubKey.3 \
Tspi_Key_LoadKey.3 \
Tspi_Key_UnloadKey.3 \
Tspi_Key_WrapKey.3 \
Tspi_PcrComposite_GetPcrValue.3 \
Tspi_PcrComposite_SelectPcrIndex.3 \
Tspi_PcrComposite_SetPcrValue.3 \
Tspi_Policy_AssignToObject.3 \
Tspi_Policy_FlushSecret.3 \
Tspi_Policy_SetSecret.3 \
Tspi_SetAttribData.3 \
Tspi_SetAttribUint32.3 \
Tspi_TPM_AuthorizeMigrationTicket.3 \
Tspi_TPM_CMKSetRestrictions.3 \
Tspi_TPM_CertifySelfTest.3 \
Tspi_TPM_CheckMaintenancePubKey.3 \
Tspi_TPM_ClearOwner.3 \
Tspi_TPM_CollateIdentityRequest.3 \
Tspi_TPM_CreateEndorsementKey.3 \
Tspi_TPM_CreateMaintenanceArchive.3 \
Tspi_TPM_DAA_JoinCreateDaaPubKey.3 \
Tspi_TPM_DAA_JoinInit.3 \
Tspi_TPM_DAA_JoinStoreCredential.3 \
Tspi_TPM_DAA_Sign.3 \
Tspi_TPM_DirRead.3 \
Tspi_TPM_DirWrite.3 \
Tspi_TPM_GetAuditDigest.3 \
Tspi_TPM_GetCapability.3 \
Tspi_TPM_GetEvent.3 \
Tspi_TPM_GetEventLog.3 \
Tspi_TPM_GetEvents.3 \
Tspi_TPM_GetPubEndorsementKey.3 \
Tspi_TPM_GetRandom.3 \
Tspi_TPM_GetStatus.3 \
Tspi_TPM_GetTestResult.3 \
Tspi_TPM_KillMaintenanceFeature.3 \
Tspi_TPM_LoadMaintenancePubKey.3 \
Tspi_TPM_OwnerGetSRKPubKey.3 \
Tspi_TPM_PcrExtend.3 \
Tspi_TPM_PcrRead.3 \
Tspi_TPM_Quote.3 \
Tspi_TPM_SelfTestFull.3 \
Tspi_TPM_SetStatus.3 \
Tspi_TPM_StirRandom.3 \
Tspi_TPM_TakeOwnership.3

.include <bsd.lib.mk>
@


