summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts.h
diff options
context:
space:
mode:
authortb <>2018-05-13 15:04:05 +0000
committertb <>2018-05-13 15:04:05 +0000
commitb0e9b80efde53e09ba0e6da43a3086b062ae877e (patch)
tree03be06e154351693f7fd390d71caf4621f0afa47 /src/lib/libcrypto/ts/ts.h
parentc186a218ed0451160f25a29ca3912b0e94fbe3c0 (diff)
downloadopenbsd-b0e9b80efde53e09ba0e6da43a3086b062ae877e.tar.gz
openbsd-b0e9b80efde53e09ba0e6da43a3086b062ae877e.tar.bz2
openbsd-b0e9b80efde53e09ba0e6da43a3086b062ae877e.zip
Add const qualifier to the ASN1_OBJ * argument of
TS_REQ_get_ext_by_OBJ(3), TS_REQ_set_policy_id(3), TS_RESP_CTX_add_policy(3), TS_RESP_CTX_set_def_policy(3), and TS_TST_INFO_get_ext_by_OBJ(3) tested in a bulk by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/ts/ts.h')
-rw-r--r--src/lib/libcrypto/ts/ts.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h
index a8d2281b7a..3a010d517b 100644
--- a/src/lib/libcrypto/ts/ts.h
+++ b/src/lib/libcrypto/ts/ts.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts.h,v 1.8 2016/12/27 16:05:57 jsing Exp $ */ 1/* $OpenBSD: ts.h,v 1.9 2018/05/13 15:04:05 tb Exp $ */
2/* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL
3 * project 2002, 2003, 2004. 3 * project 2002, 2003, 2004.
4 */ 4 */
@@ -365,7 +365,7 @@ X509_ALGOR *TS_MSG_IMPRINT_get_algo(TS_MSG_IMPRINT *a);
365int TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len); 365int TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);
366ASN1_OCTET_STRING *TS_MSG_IMPRINT_get_msg(TS_MSG_IMPRINT *a); 366ASN1_OCTET_STRING *TS_MSG_IMPRINT_get_msg(TS_MSG_IMPRINT *a);
367 367
368int TS_REQ_set_policy_id(TS_REQ *a, ASN1_OBJECT *policy); 368int TS_REQ_set_policy_id(TS_REQ *a, const ASN1_OBJECT *policy);
369ASN1_OBJECT *TS_REQ_get_policy_id(TS_REQ *a); 369ASN1_OBJECT *TS_REQ_get_policy_id(TS_REQ *a);
370 370
371int TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce); 371int TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);
@@ -378,7 +378,7 @@ STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a);
378void TS_REQ_ext_free(TS_REQ *a); 378void TS_REQ_ext_free(TS_REQ *a);
379int TS_REQ_get_ext_count(TS_REQ *a); 379int TS_REQ_get_ext_count(TS_REQ *a);
380int TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos); 380int TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos);
381int TS_REQ_get_ext_by_OBJ(TS_REQ *a, ASN1_OBJECT *obj, int lastpos); 381int TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos);
382int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos); 382int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos);
383X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc); 383X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc);
384X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc); 384X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc);
@@ -524,14 +524,14 @@ int TS_RESP_CTX_set_signer_cert(TS_RESP_CTX *ctx, X509 *signer);
524int TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key); 524int TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key);
525 525
526/* This parameter must be set. */ 526/* This parameter must be set. */
527int TS_RESP_CTX_set_def_policy(TS_RESP_CTX *ctx, ASN1_OBJECT *def_policy); 527int TS_RESP_CTX_set_def_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *def_policy);
528 528
529/* No additional certs are included in the response by default. */ 529/* No additional certs are included in the response by default. */
530int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs); 530int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs);
531 531
532/* Adds a new acceptable policy, only the default policy 532/* Adds a new acceptable policy, only the default policy
533 is accepted by default. */ 533 is accepted by default. */
534int TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, ASN1_OBJECT *policy); 534int TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy);
535 535
536/* Adds a new acceptable message digest. Note that no message digests 536/* Adds a new acceptable message digest. Note that no message digests
537 are accepted by default. The md argument is shared with the caller. */ 537 are accepted by default. The md argument is shared with the caller. */