Fix minor stylistic problem.

Normally this would be pretty scary:
  if (...) {
  } if (...) {
  }
But it's an early return anyway.

Change-Id: I0a8965b5e294d3aaa803be47f4006ea0311c431d
Reviewed-on: https://boringssl-review.googlesource.com/6851
Reviewed-by: Adam Langley <alangley@gmail.com>
This commit is contained in:
David Benjamin 2015-12-25 03:11:13 -05:00 committed by Adam Langley
parent 719594e512
commit c612e61e1d

View File

@ -315,9 +315,11 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pengine,
size_t len) {
if (len == 3 && memcmp(name, "RSA", 3) == 0) {
return &rsa_asn1_meth;
} if (len == 2 && memcmp(name, "EC", 2) == 0) {
}
if (len == 2 && memcmp(name, "EC", 2) == 0) {
return &ec_asn1_meth;
} else if (len == 3 && memcmp(name, "DSA", 3) == 0) {
}
if (len == 3 && memcmp(name, "DSA", 3) == 0) {
return &dsa_asn1_meth;
}
return NULL;