mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
(copyright and licence itself remain unchanged) fix configure to set Qt include dir code justifying
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef ASN1INTEGER_H
|
|
#define ASN1INTEGER_H
|
|
|
|
#include <qstring.h>
|
|
#include <openssl/asn1.h>
|
|
|
|
class a1int
|
|
{
|
|
private:
|
|
ASN1_INTEGER *in;
|
|
ASN1_INTEGER *dup(const ASN1_INTEGER *a) const;
|
|
void openssl_error() const;
|
|
public:
|
|
a1int();
|
|
a1int(const ASN1_INTEGER *i);
|
|
a1int(const a1int &a);
|
|
a1int(long l);
|
|
~a1int();
|
|
a1int &set(const ASN1_INTEGER *i);
|
|
a1int &set(long l);
|
|
QString toHex() const;
|
|
QString toDec() const;
|
|
a1int &setHex(const QString &s);
|
|
a1int &setDec(const QString &s);
|
|
a1int &setRaw(const unsigned char *data, unsigned len);
|
|
long getLong() const;
|
|
ASN1_INTEGER *get() const;
|
|
unsigned char *i2d(unsigned char *p);
|
|
int derSize() const;
|
|
|
|
a1int &operator ++ (void);
|
|
a1int operator ++ (int);
|
|
a1int &operator = (const a1int &a);
|
|
a1int &operator = (long i);
|
|
bool operator > (const a1int &a) const;
|
|
bool operator < (const a1int &a) const;
|
|
bool operator == (const a1int &a) const;
|
|
bool operator != (const a1int &a) const;
|
|
};
|
|
|
|
#endif
|