mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-07 12:33:39 +08:00
Remove warnings
This commit is contained in:
@@ -241,7 +241,6 @@ int sm2_verify(const SM2_KEY *key, const uint8_t dgst[32], const uint8_t *sig, s
|
|||||||
int ret;
|
int ret;
|
||||||
SM2_SIGNATURE signature;
|
SM2_SIGNATURE signature;
|
||||||
const uint8_t *p;
|
const uint8_t *p;
|
||||||
size_t len;
|
|
||||||
|
|
||||||
if (!key
|
if (!key
|
||||||
|| !dgst
|
|| !dgst
|
||||||
@@ -615,7 +614,6 @@ int sm2_ciphertext_print(FILE *fp, int fmt, int ind, const char *label, const ui
|
|||||||
{
|
{
|
||||||
uint8_t buf[512] = {0};
|
uint8_t buf[512] = {0};
|
||||||
SM2_CIPHERTEXT *c = (SM2_CIPHERTEXT *)buf;
|
SM2_CIPHERTEXT *c = (SM2_CIPHERTEXT *)buf;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (sm2_ciphertext_from_der(c, &a, &alen) != 1
|
if (sm2_ciphertext_from_der(c, &a, &alen) != 1
|
||||||
|| asn1_length_is_zero(alen) != 1) {
|
|| asn1_length_is_zero(alen) != 1) {
|
||||||
|
|||||||
@@ -418,8 +418,6 @@ int x509_crl_ext_id_to_der(int oid, uint8_t **out, size_t *outlen)
|
|||||||
int x509_crl_ext_id_from_der_ex(int *oid, uint32_t *nodes, size_t *nodes_cnt, const uint8_t **in, size_t *inlen)
|
int x509_crl_ext_id_from_der_ex(int *oid, uint32_t *nodes, size_t *nodes_cnt, const uint8_t **in, size_t *inlen)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
const uint8_t *p;
|
|
||||||
size_t len;
|
|
||||||
const ASN1_OID_INFO *info;
|
const ASN1_OID_INFO *info;
|
||||||
|
|
||||||
*oid = 0;
|
*oid = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user