summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2018-11-17 09:34:11 +0000
committertb <>2018-11-17 09:34:11 +0000
commitf6a3b032847502583b5bd50da540344191918c48 (patch)
tree9cd21c84ea4cceca2af07ffa4a5362eb88c245a9
parent052572f75cae4b7f97763f67d0e54e6c005dab58 (diff)
downloadopenbsd-f6a3b032847502583b5bd50da540344191918c48.tar.gz
openbsd-f6a3b032847502583b5bd50da540344191918c48.tar.bz2
openbsd-f6a3b032847502583b5bd50da540344191918c48.zip
Fix whitespace around assignment operators.
-rw-r--r--src/lib/libcrypto/asn1/asn1_lib.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c
index 033a5a1b5d..5dc520c428 100644
--- a/src/lib/libcrypto/asn1/asn1_lib.c
+++ b/src/lib/libcrypto/asn1/asn1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_lib.c,v 1.43 2018/11/02 05:30:41 tb Exp $ */ 1/* $OpenBSD: asn1_lib.c,v 1.44 2018/11/17 09:34:11 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -106,7 +106,7 @@ ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,
106 goto err; 106 goto err;
107 ret = (*p & V_ASN1_CONSTRUCTED); 107 ret = (*p & V_ASN1_CONSTRUCTED);
108 xclass = (*p & V_ASN1_PRIVATE); 108 xclass = (*p & V_ASN1_PRIVATE);
109 i= *p & V_ASN1_PRIMITIVE_TAG; 109 i = *p & V_ASN1_PRIMITIVE_TAG;
110 if (i == V_ASN1_PRIMITIVE_TAG) { /* high-tag */ 110 if (i == V_ASN1_PRIMITIVE_TAG) { /* high-tag */
111 p++; 111 p++;
112 if (--max == 0) 112 if (--max == 0)
@@ -156,7 +156,7 @@ err:
156static int 156static int
157asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max) 157asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max)
158{ 158{
159 const unsigned char *p= *pp; 159 const unsigned char *p = *pp;
160 unsigned long ret = 0; 160 unsigned long ret = 0;
161 unsigned int i; 161 unsigned int i;
162 162
@@ -168,7 +168,7 @@ asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max)
168 p++; 168 p++;
169 } else { 169 } else {
170 *inf = 0; 170 *inf = 0;
171 i= *p & 0x7f; 171 i = *p & 0x7f;
172 if (*(p++) & 0x80) { 172 if (*(p++) & 0x80) {
173 if (max < (int)i) 173 if (max < (int)i)
174 return (0); 174 return (0);
@@ -199,7 +199,7 @@ void
199ASN1_put_object(unsigned char **pp, int constructed, int length, int tag, 199ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
200 int xclass) 200 int xclass)
201{ 201{
202 unsigned char *p= *pp; 202 unsigned char *p = *pp;
203 int i, ttag; 203 int i, ttag;
204 204
205 i = (constructed) ? V_ASN1_CONSTRUCTED : 0; 205 i = (constructed) ? V_ASN1_CONSTRUCTED : 0;
@@ -240,7 +240,7 @@ ASN1_put_eoc(unsigned char **pp)
240static void 240static void
241asn1_put_length(unsigned char **pp, int length) 241asn1_put_length(unsigned char **pp, int length)
242{ 242{
243 unsigned char *p= *pp; 243 unsigned char *p = *pp;
244 244
245 int i, l; 245 int i, l;
246 if (length <= 127) 246 if (length <= 127)
@@ -338,7 +338,7 @@ ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
338 if (data != NULL) { 338 if (data != NULL) {
339 memmove(str->data, data, len); 339 memmove(str->data, data, len);
340 } 340 }
341 str->data[str->length]='\0'; 341 str->data[str->length] = '\0';
342 return (1); 342 return (1);
343} 343}
344 344