diff options
author | Rob Percival <robpercival@google.com> | 2016-02-29 20:26:36 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-01 11:59:28 -0500 |
commit | 0f97a12112bf748474662080848f75804a8fddc4 (patch) | |
tree | 630631dfba8ee1c204711306a2ea2ee95ea1e0b4 /crypto/ct/ct_b64.c | |
parent | 0dfd6cf901d34b5774fa406c44fcfbe9e3ef6d5e (diff) |
Move macros for reading/writing integers into ct_locl.h
Reviewed-by: Ben Laurie <ben@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/ct/ct_b64.c')
-rw-r--r-- | crypto/ct/ct_b64.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/ct/ct_b64.c b/crypto/ct/ct_b64.c index 8228f3d6be..a1693a6c28 100644 --- a/crypto/ct/ct_b64.c +++ b/crypto/ct/ct_b64.c @@ -63,14 +63,7 @@ #include <openssl/err.h> #include <openssl/evp.h> -/* - * TODO(robpercival): These macros are getting duplicated all over the place. - * Is there a single place they should be defined for re-use? - * Also, is there a good reason they aren't functions? - */ -#define n2s(c,s) ((s=(((unsigned int)((c)[0]))<<8) | \ - (((unsigned int)((c)[1])))), \ - c+=2) +#include "ct_locl.h" /* * Decodes the base64 string |in| into |out|. |