Skip to content

Commit 343c3b4

Browse files
author
Jonas Maier
committed
corresponds
1 parent b32fc0a commit 343c3b4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

openssl/src/ts.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ impl TsRespContext {
315315
}
316316

317317
/// 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)]
320319
pub fn set_signer_cert(&mut self, cert: &X509Ref) -> Result<(), ErrorStack> {
321320
unsafe {
322321
cvt(ffi::TS_RESP_CTX_set_signer_cert(
@@ -330,8 +329,7 @@ impl TsRespContext {
330329
/// Sets the private key the TSA uses to sign the request.
331330
///
332331
/// 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)]
335333
pub fn set_signer_key<T>(&mut self, pkey: &PKeyRef<T>) -> Result<(), ErrorStack>
336334
where
337335
T: HasPrivate,
@@ -349,8 +347,8 @@ impl TsRespContext {
349347
///
350348
///
351349
/// Requires OpenSSL 1.1.0 or newer.
352-
/// This corresponds to `TS_RESP_CTX_set_signer_digest`.
353350
#[cfg(ossl110)]
351+
#[corresponds(TS_RESP_CTX_set_signer_digest)]
354352
pub fn set_signer_digest(&mut self, md: MessageDigest) -> Result<(), ErrorStack> {
355353
unsafe {
356354
cvt(ffi::TS_RESP_CTX_set_signer_digest(
@@ -364,8 +362,7 @@ impl TsRespContext {
364362
/// Add an accepted message digest algorithm.
365363
///
366364
/// 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)]
369366
pub fn add_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> {
370367
unsafe { cvt(ffi::TS_RESP_CTX_add_md(self.as_ptr(), md.as_ptr())).map(|_| ()) }
371368
}

0 commit comments

Comments
 (0)