2020-08-17 03:25:08 +08:00
|
|
|
# We make separate GOAL variables for each algorithm, to make it easy to
|
|
|
|
# switch each to the Legacy provider when needed.
|
|
|
|
|
2021-05-06 14:48:15 +08:00
|
|
|
$ENCODER_GOAL=../../libdefault.a
|
|
|
|
$DECODER_GOAL=../../libdefault.a
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
SOURCE[$ENCODER_GOAL]=endecoder_common.c
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
SOURCE[$DECODER_GOAL]=decode_der2key.c decode_epki2pki.c decode_pem2der.c \
|
2021-06-08 18:49:06 +08:00
|
|
|
decode_msblob2key.c decode_pvk2key.c \
|
|
|
|
decode_spki2typespki.c
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-12-09 18:54:56 +08:00
|
|
|
SOURCE[$ENCODER_GOAL]=encode_key2any.c encode_key2text.c encode_key2ms.c
|
2021-02-24 05:41:04 +08:00
|
|
|
# encode_key2blob.c is only being included when EC is enabled, because we
|
|
|
|
# currently only define a "blob" output type for EC public keys. This may
|
|
|
|
# change in the future.
|
|
|
|
IF[{- !$disabled{ec} -}]
|
|
|
|
SOURCE[$ENCODER_GOAL]=encode_key2blob.c
|
|
|
|
ENDIF
|
2020-09-07 18:25:17 +08:00
|
|
|
DEPEND[encode_key2any.o]=../../common/include/prov/der_rsa.h
|