diff --git a/include/mbedtls/x509_ocsp.h b/include/mbedtls/x509_ocsp.h index 42b18c2c42..910b2c1765 100644 --- a/include/mbedtls/x509_ocsp.h +++ b/include/mbedtls/x509_ocsp.h @@ -86,7 +86,7 @@ typedef struct mbedtls_x509_ocsp_single_response { mbedtls_x509_buf md_oid; /**< Hash algorithm used to generate issuerHashName and issuesKeyHash */ mbedtls_md_type_t md_alg; /**< Internal representation of the MD algorithm of the hash algorithm, e.g. MBEDTLS_MD_SHA256 */ mbedtls_x509_buf issuer_name_hash; /**< Hash of the issues's distinduished name (DN) */ - mbedtls_x509_buf issues_key_hash; /**< Hash of issuer's public key */ + mbedtls_x509_buf issuer_key_hash; /**< Hash of issuer's public key */ mbedtls_x509_buf serial; /**< The serial of the certificate that this SingleResponse corresponds to */ uint8_t cert_status; /**< The revocation status of the certificate with CertID, e.g. good, revoked, unknown */ diff --git a/library/x509_ocsp.c b/library/x509_ocsp.c index 52c0ec9692..d39333dc52 100644 --- a/library/x509_ocsp.c +++ b/library/x509_ocsp.c @@ -402,7 +402,7 @@ static int x509_ocsp_get_cert_id( unsigned char **p, /* Parse issuerKeyHash */ if( ( ret = x509_ocsp_get_md( p, end, single_resp->md_alg, - &single_resp->issues_key_hash ) ) != 0 ) + &single_resp->issuer_key_hash ) ) != 0 ) { return( ret ); }