bin ich blöd oder was?
This commit is contained in:
		| @@ -610,12 +610,10 @@ namespace openssl { | |||||||
|       } |       } | ||||||
|       //! Check whether it's a CA certificate. |       //! Check whether it's a CA certificate. | ||||||
|       bool isCa() { |       bool isCa() { | ||||||
|         static BASIC_CONSTRAINTS* bc(0); |         BASIC_CONSTRAINTS* bc(0); | ||||||
|         if (!bc) { |  | ||||||
|         int pos(X509_get_ext_by_NID(_x509, NID_basic_constraints, -1)); |         int pos(X509_get_ext_by_NID(_x509, NID_basic_constraints, -1)); | ||||||
|         if (pos>=0) |         if (pos>=0) | ||||||
|           bc = (BASIC_CONSTRAINTS*)X509V3_EXT_d2i(X509_get_ext(_x509, pos)); |           bc = (BASIC_CONSTRAINTS*)X509V3_EXT_d2i(X509_get_ext(_x509, pos)); | ||||||
|         } |  | ||||||
|         return bc&&bc->ca; |         return bc&&bc->ca; | ||||||
|       } |       } | ||||||
|       //! Get organizational unit name. |       //! Get organizational unit name. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user