mirror of https://github.com/docker/docs.git
				
				
				
			More defensive coding around listing our keys in the yubikey.
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
		
							parent
							
								
									45de2828b5
								
							
						
					
					
						commit
						587906e6c6
					
				|  | @ -483,6 +483,12 @@ func yubiListKeys(ctx IPKCS11Ctx, session pkcs11.SessionHandle) (keys map[string | |||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		// we found nothing
 | ||||
| 		if cert == nil { | ||||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
| 		var ecdsaPubKey *ecdsa.PublicKey | ||||
| 		switch cert.PublicKeyAlgorithm { | ||||
| 		case x509.ECDSA: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue