test stubs

This commit is contained in:
Hayden Parker
2016-04-01 21:36:20 -07:00
parent 7e00424a83
commit fc9974c33f
2 changed files with 67 additions and 1 deletions

View File

@ -88,10 +88,13 @@ func (keys_and_cert KeysAndCert) PublicKey() (key crypto.PublicKey, err error) {
} else {
// Key Certificate is not present, return the KEYS_AND_CERT_PUBKEY_SIZE byte
// PublicKey space as ElgPublicKey. No other Certificate
// types are currently in use
// types are currently in use.
var elg_key crypto.ElgPublicKey
copy(keys_and_cert[:KEYS_AND_CERT_PUBKEY_SIZE], elg_key[:])
key = elg_key
log.WithFields(log.Fields{
"cert_type": cert_type,
}).Warn("unused certificate type observed")
}
}