Skip to content

Commit fe9afbb

Browse files
committed
Update documentation
IB-8847 Signed-off-by: Raul Metsma <raul@metsma.ee>
1 parent 4b6d0be commit fe9afbb

8 files changed

Lines changed: 329 additions & 61 deletions

File tree

src/Conf.cpp

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Conf* Conf::INSTANCE = nullptr;
4242
* @class digidoc::Conf
4343
* @brief Configuration class which can reimplemented and virtual methods overloaded.
4444
*
45-
* @deprecated Use digidoc::ConfV5
45+
* @deprecated Since 3.12.2, use digidoc::ConfV5
4646
* @see @ref parameters
4747
*/
4848
/**
@@ -146,17 +146,20 @@ string Conf::proxyPass() const { return {}; }
146146
* Gets PKCS12 certificate file location.
147147
*
148148
* Used for signing OCSP request
149+
* @deprecated Since 3.16.0
149150
*/
150151
string Conf::PKCS12Cert() const { return {}; }
151152

152153
/**
153154
* Gets PKCS12 password.
155+
* @deprecated Since 3.16.0
154156
* @see digidoc::Conf::PKCS12Cert
155157
*/
156158
string Conf::PKCS12Pass() const { return {}; }
157159

158160
/**
159161
* Gets PKCS12 usage.
162+
* @deprecated Since 3.16.0
160163
* @see digidoc::Conf::PKCS12Cert
161164
*/
162165
bool Conf::PKCS12Disable() const { return false; }
@@ -235,8 +238,9 @@ string Conf::verifyServiceUri() const { return SIVA_URL; }
235238
* Conf contains virtual members and is not leaf class we need create
236239
* subclasses to keep binary compatibility
237240
* https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#Adding_new_virtual_functions_to_leaf_classes
241+
* @since 3.12.2
238242
* @see digidoc::Conf
239-
* @deprecated Use digidoc::ConfV5
243+
* @deprecated Since 3.13.8, use digidoc::ConfV5
240244
* @see @ref parameters
241245
*/
242246
/**
@@ -253,6 +257,7 @@ ConfV2* ConfV2::instance() { return dynamic_cast<ConfV2*>(Conf::instance()); }
253257

254258
/**
255259
* Gets verify service Cert
260+
* @since 3.12.2
256261
*/
257262
X509Cert ConfV2::verifyServiceCert() const { return X509Cert(); }
258263

@@ -265,8 +270,9 @@ X509Cert ConfV2::verifyServiceCert() const { return X509Cert(); }
265270
* Conf contains virtual members and is not leaf class we need create
266271
* subclasses to keep binary compatibility
267272
* https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#Adding_new_virtual_functions_to_leaf_classes
273+
* @since 3.13.8
268274
* @see digidoc::ConfV2
269-
* @deprecated Use digidoc::ConfV5
275+
* @deprecated Since 3.14.7, use digidoc::ConfV5
270276
* @see @ref parameters
271277
*/
272278
/**
@@ -285,6 +291,7 @@ ConfV3* ConfV3::instance() { return dynamic_cast<ConfV3*>(Conf::instance()); }
285291
* Gets OCSP TM Profile OID-s
286292
*
287293
* OCSP responder certificate policies that are used to identify if OCSP response is given with TM profile
294+
* @since 3.13.8
288295
*/
289296
set<string> ConfV3::OCSPTMProfiles() const { return { "1.3.6.1.4.1.10015.4.1.2" }; }
290297

@@ -297,8 +304,9 @@ set<string> ConfV3::OCSPTMProfiles() const { return { "1.3.6.1.4.1.10015.4.1.2"
297304
* Conf contains virtual members and is not leaf class we need create
298305
* subclasses to keep binary compatibility
299306
* https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#Adding_new_virtual_functions_to_leaf_classes
307+
* @since 3.14.7
300308
* @see digidoc::ConfV3
301-
* @deprecated Use digidoc::ConfV5
309+
* @deprecated Since 3.15.0, use digidoc::ConfV5
302310
* @see @ref parameters
303311
*/
304312
/**
@@ -315,6 +323,7 @@ ConfV4* ConfV4::instance() { return dynamic_cast<ConfV4*>(Conf::instance()); }
315323

316324
/**
317325
* Gets verify service Certs
326+
* @since 3.14.7
318327
*/
319328
vector<X509Cert> ConfV4::verifyServiceCerts() const
320329
{
@@ -330,6 +339,7 @@ vector<X509Cert> ConfV4::verifyServiceCerts() const
330339
* Conf contains virtual members and is not leaf class we need create
331340
* subclasses to keep binary compatibility
332341
* https://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++#Adding_new_virtual_functions_to_leaf_classes
342+
* @since 3.15.0
333343
* @see digidoc::ConfV4
334344
* @see @ref parameters
335345
*/
@@ -347,6 +357,7 @@ ConfV5* ConfV5::instance() { return dynamic_cast<ConfV5*>(Conf::instance()); }
347357

348358
/**
349359
* Gets verify service Certs
360+
* @since 3.15.0
350361
*/
351362
vector<X509Cert> ConfV5::TSCerts() const
352363
{

src/Container.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ string digidoc::appInfo() { return m_appName; }
6666

6767
/**
6868
* Returns user-agent info
69+
* @since 3.14.3
6970
*/
7071
string digidoc::userAgent() { return m_userAgent; }
7172

@@ -94,6 +95,7 @@ void digidoc::initialize(const string &appInfo, initCallBack callBack)
9495
* loads configuration settings from default configuration files (see \ref conf) and initializes
9596
* certificate store using TSL lists
9697
*
98+
* @since 3.14.3
9799
* @param appInfo Application name for container comments
98100
* @param userAgent Application info for user agent string
99101
* @param callBack Callback when background thread TSL loading is completed
@@ -231,7 +233,7 @@ Container::~Container() = default;
231233
* Adds the data from an input stream (i.e. the data file contents can be read from internal memory buffer).
232234
*
233235
* Takes ownership std::istream *is object.
234-
* @deprecated Use digidoc::Container::addDataFile(std::unique_ptr<std::istream> is, const std::string &fileName, const std::string &mediaType)
236+
* @deprecated Since 3.14.4, use digidoc::Container::addDataFile(std::unique_ptr<std::istream> is, const std::string &fileName, const std::string &mediaType)
235237
* @param is input stream from where data is read
236238
* @param fileName data file name in the container
237239
* @param mediaType MIME type of the data file, for example “text/plain” or “application/msword”
@@ -248,6 +250,7 @@ void Container::addDataFile(istream *is, const string &fileName, const string &m
248250
/**
249251
* Adds the data from an input stream (i.e. the data file contents can be read from internal memory buffer).
250252
*
253+
* @since 3.14.4
251254
* @param is input stream from where data is read
252255
* @param fileName data file name in the container
253256
* @param mediaType MIME type of the data file, for example “text/plain” or “application/msword”
@@ -284,7 +287,7 @@ void Container::addAdESSignature(const std::vector<unsigned char> &signature)
284287
/**
285288
* Create a new container object and specify the DigiDoc container type
286289
*
287-
* @deprecated Use Container::createPtr
290+
* @deprecated Since 3.14.4, use Container::createPtr
288291
* This method gives ownership of object to caller
289292
*/
290293
Container* Container::create(const std::string &path)
@@ -294,6 +297,7 @@ Container* Container::create(const std::string &path)
294297

295298
/**
296299
* Create a new container object and specify the DigiDoc container type
300+
* @since 3.14.4
297301
*/
298302
unique_ptr<Container> Container::createPtr(const std::string &path)
299303
{
@@ -334,7 +338,7 @@ unsigned int Container::newSignatureId() const
334338
*
335339
* This method gives ownership of object to caller
336340
*
337-
* @deprecated Use Container::openPtr
341+
* @deprecated Since 3.14.4, use Container::openPtr
338342
* @param path
339343
* @throws Exception
340344
*/
@@ -346,6 +350,7 @@ Container* Container::open(const string &path)
346350
/**
347351
* Opens container from a file
348352
*
353+
* @since 3.14.4
349354
* @param path
350355
* @throws Exception
351356
*/
@@ -357,6 +362,7 @@ unique_ptr<Container> Container::openPtr(const string &path)
357362
/**
358363
* Opens container from a file
359364
*
365+
* @since 3.17.0
360366
* @param path
361367
* @param cb Callback called when additional info is requested (digidoc::ContainerOpenCB::validateOnline)
362368
* @throws Exception

src/Exception.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ std::vector<Exception::ExceptionCode> Exception::ignores {};
4444
* General error, no specific code
4545
* @var digidoc::Exception::NetworkError
4646
* Network error, network connection errors
47+
* @since 3.14.3
4748
* @var digidoc::Exception::HostNotFound
4849
* Network error, host not found
50+
* @since 3.14.8
4951
* @var digidoc::Exception::InvalidUrl
5052
* Network error, invalid URL
53+
* @since 3.14.8
5154
*
5255
* @var digidoc::Exception::CertificateIssuerMissing
5356
* Signer's certificate's issuer certificate is missing
@@ -57,6 +60,7 @@ std::vector<Exception::ExceptionCode> Exception::ignores {};
5760
* Certificate status is unknown in OCSP response
5861
* @var digidoc::Exception::OCSPBeforeTimeStamp
5962
* OCSP producedAt time is before TimeStamp time
63+
* @since 3.14.2
6064
* @var digidoc::Exception::OCSPResponderMissing
6165
* OCSP Responder is missing
6266
* @var digidoc::Exception::OCSPCertMissing
@@ -67,8 +71,10 @@ std::vector<Exception::ExceptionCode> Exception::ignores {};
6771
* OCSP Responder requires the OCSP request to be signed
6872
* @var digidoc::Exception::TSForbidden
6973
* TSA service responds forbidden
74+
* @since 3.14.4
7075
* @var digidoc::Exception::TSTooManyRequests
7176
* TSA service requests have reached limit
77+
* @since 3.13.8
7278
*
7379
* @var digidoc::Exception::PINCanceled
7480
* PIN cancelled exception
@@ -91,10 +97,11 @@ std::vector<Exception::ExceptionCode> Exception::ignores {};
9197
* TimeStamp and OCSP time difference is more than 15 minutes
9298
* @var digidoc::Exception::MimeTypeWarning
9399
* Mime type is not conformant mime-type strings
100+
* @since 3.13.2
94101
*
95102
* @var digidoc::Exception::DDocError
96103
* DDoc libdigidoc error codes bit masked
97-
* @deprecated Unused
104+
* @deprecated Since 3.14.7, libdigidoc support removed
98105
*/
99106

100107
/**

0 commit comments

Comments
 (0)