components/openssl/openssl-1.0.1/patches/33_cert_chain.patch
branchs11-update
changeset 2921 8da1e7689d13
parent 2801 02364d9168f2
child 4002 95b8f35fcdd5
equal deleted inserted replaced
2919:c18ab9ed07fe 2921:8da1e7689d13
   164 +	 */
   164 +	 */
   165 +	return X509_TRUST_UNTRUSTED;
   165 +	return X509_TRUST_UNTRUSTED;
   166  }
   166  }
   167  
   167  
   168  static int check_revocation(X509_STORE_CTX *ctx)
   168  static int check_revocation(X509_STORE_CTX *ctx)
   169 @@ -1591,6 +1630,8 @@ static int internal_verify(X509_STORE_CTX *ctx)
   169 @@ -1602,6 +1641,8 @@ static int internal_verify(X509_STORE_CTX *ctx)
   170  		xs=xi;
   170  		xs=xi;
   171  	else
   171  	else
   172  		{
   172  		{
   173 +		if (ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN && n == 0)
   173 +		if (ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN && n == 0)
   174 +			return check_cert_time(ctx, xi);
   174 +			return check_cert_time(ctx, xi);