X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fx509v3%2Fv3_skey.c;h=641104ab08c3583952c032b6eda4e16d6bec87ab;hb=5cf6abd805b9f15127f9f343a6e3b662565f93d5;hp=977844b55a4adef7b7dacf2b0c23755283df6c6d;hpb=75ebbd9aa411c5b8b19ded6ace2b34181566b56a;p=openssl.git diff --git a/crypto/x509v3/v3_skey.c b/crypto/x509v3/v3_skey.c index 977844b55a..641104ab08 100644 --- a/crypto/x509v3/v3_skey.c +++ b/crypto/x509v3/v3_skey.c @@ -58,8 +58,10 @@ */ #include -#include "cryptlib.h" +#include "internal/cryptlib.h" #include +#include "internal/x509_int.h" +#include "ext_dat.h" static ASN1_OCTET_STRING *s2i_skey_id(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str); @@ -126,7 +128,7 @@ static ASN1_OCTET_STRING *s2i_skey_id(X509V3_EXT_METHOD *method, if (ctx->subject_req) pk = ctx->subject_req->req_info->pubkey->public_key; else - pk = ctx->subject_cert->cert_info->key->public_key; + pk = ctx->subject_cert->cert_info.key->public_key; if (!pk) { X509V3err(X509V3_F_S2I_SKEY_ID, X509V3_R_NO_PUBLIC_KEY);