Removed is_newer() from certificate_t, obsoleting all implementations
This commit is contained in:
@@ -188,14 +188,6 @@ static bool get_validity(private_x509_pkcs10_t *this, time_t *when,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of certificate_t.is_newer.
|
||||
*/
|
||||
static bool is_newer(certificate_t *this, certificate_t *that)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of certificate_t.get_encoding.
|
||||
*/
|
||||
@@ -357,7 +349,7 @@ static bool parse_challengePassword(private_x509_pkcs10_t *this, chunk_t blob, i
|
||||
*/
|
||||
static const asn1Object_t certificationRequestObjects[] = {
|
||||
{ 0, "certificationRequest", ASN1_SEQUENCE, ASN1_OBJ }, /* 0 */
|
||||
{ 1, "certificationRequestInfo", ASN1_SEQUENCE, ASN1_OBJ }, /* 1 */
|
||||
{ 1, "certificationRequestInfo", ASN1_SEQUENCE, ASN1_OBJ }, /* 1 */
|
||||
{ 2, "version", ASN1_INTEGER, ASN1_BODY }, /* 2 */
|
||||
{ 2, "subject", ASN1_SEQUENCE, ASN1_OBJ }, /* 3 */
|
||||
{ 2, "subjectPublicKeyInfo", ASN1_SEQUENCE, ASN1_RAW }, /* 4 */
|
||||
@@ -369,7 +361,7 @@ static const asn1Object_t certificationRequestObjects[] = {
|
||||
{ 4, "end loop", ASN1_EOC, ASN1_END }, /* 10 */
|
||||
{ 2, "end loop", ASN1_EOC, ASN1_END }, /* 11 */
|
||||
{ 1, "signatureAlgorithm", ASN1_EOC, ASN1_RAW }, /* 12 */
|
||||
{ 1, "signature", ASN1_BIT_STRING, ASN1_BODY }, /* 13 */
|
||||
{ 1, "signature", ASN1_BIT_STRING, ASN1_BODY }, /* 13 */
|
||||
{ 0, "exit", ASN1_EOC, ASN1_EXIT }
|
||||
};
|
||||
#define PKCS10_CERT_REQUEST_INFO 1
|
||||
@@ -512,7 +504,6 @@ static private_x509_pkcs10_t* create_empty(void)
|
||||
this->public.interface.interface.issued_by = (bool (*) (certificate_t*, certificate_t*))issued_by;
|
||||
this->public.interface.interface.get_public_key = (public_key_t* (*) (certificate_t*))get_public_key;
|
||||
this->public.interface.interface.get_validity = (bool (*) (certificate_t*, time_t*, time_t*, time_t*))get_validity;
|
||||
this->public.interface.interface.is_newer = (bool (*) (certificate_t*,certificate_t*))is_newer;
|
||||
this->public.interface.interface.get_encoding = (chunk_t (*) (certificate_t*))get_encoding;
|
||||
this->public.interface.interface.equals = (bool (*)(certificate_t*, certificate_t*))equals;
|
||||
this->public.interface.interface.get_ref = (certificate_t* (*)(certificate_t*))get_ref;
|
||||
|
||||
Reference in New Issue
Block a user