diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-05-19 12:45:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-05-19 12:45:16 +0000 |
commit | e84240d42289a131def633579cfdabfb6ebf557d (patch) | |
tree | ec455fe5f4865fc28309c3e5f5762eec155b4f7d /crypto/stack/stack.c | |
parent | 054810ec0e02d7d15bf96945e2ea46d2e4147aa5 (diff) |
New functions sk_set, sk_value and sk_num to replace existing macros: this is
to minimise the effects on existing code.
Diffstat (limited to 'crypto/stack/stack.c')
-rw-r--r-- | crypto/stack/stack.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 5a15a2456d..f1165b340c 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -284,3 +284,20 @@ void sk_free(STACK *st) Free((char *)st); } +int sk_num(STACK *st) +{ + if(st == NULL) return -1; + return st->num; +} + +char *sk_value(STACK *st, int i) +{ + if(st == NULL) return NULL; + return st->data[i]; +} + +char *sk_set(STACK *st, int i, char *value) +{ + if(st == NULL) return NULL; + return (st->data[i] = value); +} |