Lines Matching defs:certs
97 /// `certs` is a list of recipient certificates. `input` is the content to be
102 certs: &StackRef<X509>,
111 certs.as_ptr(),
123 /// private key. `certs` is an optional additional set of certificates to
130 certs: &StackRef<X509>,
142 certs.as_ptr(),
216 /// `certs` is a set of certificates in which to search for the signer's
223 certs: &StackRef<X509>,
240 certs.as_ptr(),
261 certs: &StackRef<X509>,
267 certs.as_ptr(),
271 // The returned stack is owned by the caller, but the certs inside are not! Our stack interface can't deal
272 // with that, so instead we just manually bump the refcount of the certs so that the whole stack is properly
296 let cert = include_bytes!("../test/certs.pem");
298 let mut certs = Stack::new().unwrap();
299 certs.push(cert.clone()).unwrap();
307 Pkcs7::encrypt(&certs, message.as_bytes(), cipher, flags).expect("should succeed");
326 let certs = Stack::new().unwrap();
340 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
352 &certs,
370 let certs = Stack::new().unwrap();
384 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");
395 .verify(&certs, &store, None, Some(&mut output), flags)
409 let certs = Stack::new().unwrap();
421 Pkcs7::sign(&cert, &pkey, &certs, message.as_bytes(), flags).expect("should succeed");