Fix "type qualifiers ignored on function return type" errors.
Change-Id: If0dbbadb33a073b4faee500fdff900a5094ec889 Signed-off-by: Piotr Sikora <piotr@cloudflare.com> Reviewed-on: https://boringssl-review.googlesource.com/1362 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
1d8adf18d2
commit
60d4c0e810
@ -154,7 +154,7 @@ int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
|
|||||||
pem_str,bp,x,enc,kstr,klen,cb,u);
|
pem_str,bp,x,enc,kstr,klen,cb,u);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const int public_key_type_from_str(const char *name, size_t len) {
|
static int public_key_type_from_str(const char *name, size_t len) {
|
||||||
if (len == 3 && memcmp(name, "RSA", 3) == 0) {
|
if (len == 3 && memcmp(name, "RSA", 3) == 0) {
|
||||||
return EVP_PKEY_RSA;
|
return EVP_PKEY_RSA;
|
||||||
} else if (len == 2 && memcmp(name, "DH", 2) == 0) {
|
} else if (len == 2 && memcmp(name, "DH", 2) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user