mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 11:36:47 +08:00
Check RSA public key format.
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
Wu Jiaxu (wujiaxu@sogou-inc.com)
|
||||
*/
|
||||
|
||||
#include <sys/uio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
@@ -573,6 +572,8 @@ int MySQLRSAAuthRequest::encode(struct iovec vectors[], int max)
|
||||
|
||||
rsa = PEM_read_bio_RSA_PUBKEY(bio, NULL, NULL, NULL);
|
||||
BIO_free(bio);
|
||||
if (!rsa)
|
||||
return -1;
|
||||
|
||||
EVP_PKEY_CTX *pkey_ctx;
|
||||
EVP_PKEY *pkey;
|
||||
|
||||
Reference in New Issue
Block a user