summaryrefslogtreecommitdiffstats
path: root/doc/internal/man3/evp_generic_fetch.pod
diff options
context:
space:
mode:
Diffstat (limited to 'doc/internal/man3/evp_generic_fetch.pod')
-rw-r--r--doc/internal/man3/evp_generic_fetch.pod59
1 files changed, 30 insertions, 29 deletions
diff --git a/doc/internal/man3/evp_generic_fetch.pod b/doc/internal/man3/evp_generic_fetch.pod
index 4d2f6bdd69..34f157e353 100644
--- a/doc/internal/man3/evp_generic_fetch.pod
+++ b/doc/internal/man3/evp_generic_fetch.pod
@@ -80,20 +80,21 @@ B<EVP_FOO>.
To begin with, let's assume something like this in
F<include/openssl/core_dispatch.h>:
- #define OSSL_OP_FOO 100
-
- #define OSSL_OP_FOO_NEWCTX_FUNC 2001
- #define OSSL_OP_FOO_INIT 2002
- #define OSSL_OP_FOO_OPERATE 2003
- #define OSSL_OP_FOO_CLEANCTX_FUNC 2004
- #define OSSL_OP_FOO_FREECTX_FUNC 2005
- OSSL_CORE_MAKE_FUNC(void *,OP_foo_newctx,(void))
- OSSL_CORE_MAKE_FUNC(int,OP_foo_init,(void *vctx))
- OSSL_CORE_MAKE_FUNC(int,OP_foo_operate,(void *vctx,
- unsigned char *out, size_t *out_l,
- unsigned char *in, size_t in_l))
- OSSL_CORE_MAKE_FUNC(void,OP_foo_cleanctx,(void *vctx))
- OSSL_CORE_MAKE_FUNC(void,OP_foo_freectx,(void *vctx))
+ #define OSSL_OP_FOO 100
+
+ #define OSSL_FUNC_FOO_NEWCTX_FUNC 2001
+ #define OSSL_FUNC_FOO_INIT 2002
+ #define OSSL_FUNC_FOO_OPERATE 2003
+ #define OSSL_FUNC_FOO_CLEANCTX_FUNC 2004
+ #define OSSL_FUNC_FOO_FREECTX_FUNC 2005
+
+ OSSL_CORE_MAKE_FUNC(void *, foo_newctx, (void))
+ OSSL_CORE_MAKE_FUNC(int, foo_init, (void *vctx))
+ OSSL_CORE_MAKE_FUNC(int, foo_operate, (void *vctx,
+ unsigned char *out, size_t *out_l,
+ unsigned char *in, size_t in_l))
+ OSSL_CORE_MAKE_FUNC(void, foo_cleanctx, (void *vctx))
+ OSSL_CORE_MAKE_FUNC(void, foo_freectx, (void *vctx))
And here's the implementation of the FOO method fetcher:
@@ -102,11 +103,11 @@ And here's the implementation of the FOO method fetcher:
OSSL_PROVIDER *prov;
int name_id;
CRYPTO_REF_COUNT refcnt;
- OSSL_OP_foo_newctx_fn *newctx;
- OSSL_OP_foo_init_fn *init;
- OSSL_OP_foo_operate_fn *operate;
- OSSL_OP_foo_cleanctx_fn *cleanctx;
- OSSL_OP_foo_freectx_fn *freectx;
+ OSSL_FUNC_foo_newctx_fn *newctx;
+ OSSL_FUNC_foo_init_fn *init;
+ OSSL_FUNC_foo_operate_fn *operate;
+ OSSL_FUNC_foo_cleanctx_fn *cleanctx;
+ OSSL_FUNC_foo_freectx_fn *freectx;
};
/*
@@ -127,20 +128,20 @@ And here's the implementation of the FOO method fetcher:
for (; fns->function_id != 0; fns++) {
switch (fns->function_id) {
- case OSSL_OP_FOO_NEWCTX_FUNC:
- foo->newctx = OSSL_get_OP_foo_newctx(fns);
+ case OSSL_FUNC_FOO_NEWCTX:
+ foo->newctx = OSSL_FUNC_foo_newctx(fns);
break;
- case OSSL_OP_FOO_INIT:
- foo->init = OSSL_get_OP_foo_init(fns);
+ case OSSL_FUNC_FOO_INIT:
+ foo->init = OSSL_FUNC_foo_init(fns);
break;
- case OSSL_OP_FOO_OPERATE:
- foo->operate = OSSL_get_OP_foo_operate(fns);
+ case OSSL_FUNC_FOO_OPERATE:
+ foo->operate = OSSL_FUNC_foo_operate(fns);
break;
- case OSSL_OP_FOO_CLEANCTX_FUNC:
- foo->cleanctx = OSSL_get_OP_foo_cleanctx(fns);
+ case OSSL_FUNC_FOO_CLEANCTX:
+ foo->cleanctx = OSSL_FUNC_foo_cleanctx(fns);
break;
- case OSSL_OP_FOO_FREECTX_FUNC:
- foo->freectx = OSSL_get_OP_foo_freectx(fns);
+ case OSSL_FUNC_FOO_FREECTX:
+ foo->freectx = OSSL_FUNC_foo_freectx(fns);
break;
}
}