Lines Matching refs:self
20 PySSLCertificate *self;
25 self = (PySSLCertificate *) type->tp_alloc(type, 0);
26 if (self == NULL) {
32 self->cert = cert;
33 self->hash = -1;
35 return (PyObject *) self;
74 _ssl_Certificate_public_bytes_impl(PySSLCertificate *self, int format)
80 _sslmodulestate *state = get_state_cert(self);
90 retcode = PEM_write_bio_X509(bio, self->cert);
93 retcode = PEM_write_bio_X509_AUX(bio, self->cert);
96 retcode = i2d_X509_bio(bio, self->cert);
124 _ssl_Certificate_get_info_impl(PySSLCertificate *self)
127 return _decode_certificate(get_state_cert(self), self->cert);
157 certificate_repr(PySSLCertificate *self)
163 get_state_cert(self),
164 X509_get_subject_name(self->cert),
172 Py_TYPE(self)->tp_name, osubject
179 certificate_hash(PySSLCertificate *self)
181 if (self->hash == (Py_hash_t)-1) {
183 hash = X509_subject_name_hash(self->cert);
185 self->hash = -2;
187 self->hash = (Py_hash_t)hash;
190 return self->hash;
194 certificate_richcompare(PySSLCertificate *self, PyObject *other, int op)
197 _sslmodulestate *state = get_state_cert(self);
206 cmp = X509_cmp(self->cert, ((PySSLCertificate*)other)->cert);
215 certificate_dealloc(PySSLCertificate *self)
217 PyTypeObject *tp = Py_TYPE(self);
218 X509_free(self->cert);
219 Py_TYPE(self)->tp_free(self);