@@ -83,22 +83,22 @@ interface VerifyRequestLog {
8383 *
8484 * @param inputChain The certificate chain which is being verified.
8585 */
86- fun logInputChain (inputChain : List <ByteString >)
86+ fun logInputChain (inputChain : List <ByteString >) {}
8787
8888 /* *
8989 * Logs the result of the verification. Called for each call to [verify].
9090 *
9191 * @param result The result of the verification.
9292 */
93- fun logResult (result : VerificationResult )
93+ fun logResult (result : VerificationResult ) {}
9494
9595 /* *
9696 * Logs the key description of the leaf certificate. Called if [verify] reaches the point where
9797 * the key description is parsed.
9898 *
9999 * @param keyDescription The key description of the leaf certificate.
100100 */
101- fun logKeyDescription (keyDescription : KeyDescription )
101+ fun logKeyDescription (keyDescription : KeyDescription ) {}
102102
103103 /* *
104104 * Logs the provisioning info map extension of the attestation certificate. Called if [verify]
@@ -107,7 +107,7 @@ interface VerifyRequestLog {
107107 *
108108 * @param provisioningInfoMap The provisioning info map extension of the leaf certificate.
109109 */
110- fun logProvisioningInfoMap (provisioningInfoMap : ProvisioningInfoMap )
110+ fun logProvisioningInfoMap (provisioningInfoMap : ProvisioningInfoMap ) {}
111111
112112 /* *
113113 * Logs the serial numbers of the intermediate certificates in the certificate chain. Called if
@@ -116,17 +116,25 @@ interface VerifyRequestLog {
116116 * @param certSerialNumbers The serial numbers of the intermediate certificates in the certificate
117117 * chain.
118118 */
119- fun logCertSerialNumbers (certSerialNumbers : List <String >)
119+ fun logCertSerialNumbers (certSerialNumbers : List <String >) {}
120+
121+ /* *
122+ * Logs the certificate signing algorithms of the intermediate certificates in the certificate
123+ * chain. Called if [verify] reaches the point where the certificate chain is validated.
124+ *
125+ * @param certSigningAlgorithms The certificate signing algorithms in the chain.
126+ */
127+ fun logCertSigningAlgorithms (certSigningAlgorithms : Set <String >) {}
120128
121129 /* *
122130 * Logs an info level message. May be called throughout the verification process.
123131 *
124132 * @param infoMessage The info level message to log.
125133 */
126- fun logInfoMessage (infoMessage : String )
134+ fun logInfoMessage (infoMessage : String ) {}
127135
128136 /* Flushes any buffered logs. Called just before [verify] returns. */
129- fun flush ()
137+ fun flush () {}
130138}
131139
132140/* *
@@ -267,6 +275,8 @@ constructor(
267275 return VerificationResult .PathValidationFailure (e)
268276 }
269277
278+ log?.logCertSigningAlgorithms(certPath.signingAlgorithms())
279+
270280 val keyDescription =
271281 try {
272282 checkNotNull(
0 commit comments