miqt/qt/network/gen_qocspresponse.cpp

52 lines
1.2 KiB
C++
Raw Normal View History

2024-11-04 22:53:04 +13:00
#include <QOcspResponse>
#include <QSslCertificate>
#include <qocspresponse.h>
#include "gen_qocspresponse.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
2024-11-04 22:53:04 +13:00
2024-12-07 17:15:57 +13:00
QOcspResponse* QOcspResponse_new() {
return new QOcspResponse();
2024-11-04 22:53:04 +13:00
}
2024-12-07 17:15:57 +13:00
QOcspResponse* QOcspResponse_new2(QOcspResponse* other) {
return new QOcspResponse(*other);
2024-11-04 22:53:04 +13:00
}
2025-02-01 13:45:16 +13:00
void QOcspResponse_operatorAssign(QOcspResponse* self, QOcspResponse* other) {
2024-11-04 22:53:04 +13:00
self->operator=(*other);
}
2025-02-01 13:45:16 +13:00
int QOcspResponse_certificateStatus(const QOcspResponse* self) {
2024-11-04 22:53:04 +13:00
QOcspCertificateStatus _ret = self->certificateStatus();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
int QOcspResponse_revocationReason(const QOcspResponse* self) {
2024-11-04 22:53:04 +13:00
QOcspRevocationReason _ret = self->revocationReason();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
QSslCertificate* QOcspResponse_responder(const QOcspResponse* self) {
2024-11-04 22:53:04 +13:00
return new QSslCertificate(self->responder());
}
2025-02-01 13:45:16 +13:00
QSslCertificate* QOcspResponse_subject(const QOcspResponse* self) {
2024-11-04 22:53:04 +13:00
return new QSslCertificate(self->subject());
}
2025-02-01 13:45:16 +13:00
void QOcspResponse_swap(QOcspResponse* self, QOcspResponse* other) {
2024-11-04 22:53:04 +13:00
self->swap(*other);
}
2025-02-01 13:45:16 +13:00
void QOcspResponse_delete(QOcspResponse* self) {
delete self;
2024-11-04 22:53:04 +13:00
}