@@ -315,8 +315,7 @@ impl TsRespContext {
315
315
}
316
316
317
317
/// Sets the certificate the TSA uses to sign the request.
318
- ///
319
- /// This corresponds to `TS_RESP_CTX_set_signer_cert`.
318
+ #[ corresponds( TS_RESP_CTX_set_signer_cert ) ]
320
319
pub fn set_signer_cert ( & mut self , cert : & X509Ref ) -> Result < ( ) , ErrorStack > {
321
320
unsafe {
322
321
cvt ( ffi:: TS_RESP_CTX_set_signer_cert (
@@ -330,8 +329,7 @@ impl TsRespContext {
330
329
/// Sets the private key the TSA uses to sign the request.
331
330
///
332
331
/// The private key match the X.509 certificate set by `set_signer_cert`.
333
- ///
334
- /// This corresponds to `TS_RESP_CTX_set_signer_key`.
332
+ #[ corresponds( TS_RESP_CTX_set_signer_key ) ]
335
333
pub fn set_signer_key < T > ( & mut self , pkey : & PKeyRef < T > ) -> Result < ( ) , ErrorStack >
336
334
where
337
335
T : HasPrivate ,
@@ -349,8 +347,8 @@ impl TsRespContext {
349
347
///
350
348
///
351
349
/// Requires OpenSSL 1.1.0 or newer.
352
- /// This corresponds to `TS_RESP_CTX_set_signer_digest`.
353
350
#[ cfg( ossl110) ]
351
+ #[ corresponds( TS_RESP_CTX_set_signer_digest ) ]
354
352
pub fn set_signer_digest ( & mut self , md : MessageDigest ) -> Result < ( ) , ErrorStack > {
355
353
unsafe {
356
354
cvt ( ffi:: TS_RESP_CTX_set_signer_digest (
@@ -364,8 +362,7 @@ impl TsRespContext {
364
362
/// Add an accepted message digest algorithm.
365
363
///
366
364
/// At least one accepted digest algorithm should be added to the context.
367
- ///
368
- /// This corresponds to `TS_RESP_CTX_add_md`.
365
+ #[ corresponds( TS_RESP_CTX_add_md ) ]
369
366
pub fn add_md ( & mut self , md : MessageDigest ) -> Result < ( ) , ErrorStack > {
370
367
unsafe { cvt ( ffi:: TS_RESP_CTX_add_md ( self . as_ptr ( ) , md. as_ptr ( ) ) ) . map ( |_| ( ) ) }
371
368
}
0 commit comments