diff options
author | jsing <> | 2018-08-27 17:11:32 +0000 |
---|---|---|
committer | jsing <> | 2018-08-27 17:11:32 +0000 |
commit | cf973d93a931fa3a2f6c7127e5bfbb0693d1d1a8 (patch) | |
tree | 4d2544cbfd3dd656b792557fa1051d0c09c35d64 /src | |
parent | 611d369d0d6fc3d56632953485338f3a14d1780c (diff) | |
download | openbsd-cf973d93a931fa3a2f6c7127e5bfbb0693d1d1a8.tar.gz openbsd-cf973d93a931fa3a2f6c7127e5bfbb0693d1d1a8.tar.bz2 openbsd-cf973d93a931fa3a2f6c7127e5bfbb0693d1d1a8.zip |
n2s and l2n3 finally bite the dust!
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 39aabb05fb..2592d56a61 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.210 2018/08/27 16:42:48 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.211 2018/08/27 17:11:32 jsing 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 | * |
@@ -181,15 +181,9 @@ __BEGIN_HIDDEN_DECLS | |||
181 | *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ | 181 | *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ |
182 | *((c)++)=(unsigned char)(((l) )&0xff)) | 182 | *((c)++)=(unsigned char)(((l) )&0xff)) |
183 | 183 | ||
184 | #define n2s(c,s) ((s=(((unsigned int)(c[0]))<< 8)| \ | ||
185 | (((unsigned int)(c[1])) )),c+=2) | ||
186 | #define s2n(s,c) ((c[0]=(unsigned char)(((s)>> 8)&0xff), \ | 184 | #define s2n(s,c) ((c[0]=(unsigned char)(((s)>> 8)&0xff), \ |
187 | c[1]=(unsigned char)(((s) )&0xff)),c+=2) | 185 | c[1]=(unsigned char)(((s) )&0xff)),c+=2) |
188 | 186 | ||
189 | #define l2n3(l,c) ((c[0]=(unsigned char)(((l)>>16)&0xff), \ | ||
190 | c[1]=(unsigned char)(((l)>> 8)&0xff), \ | ||
191 | c[2]=(unsigned char)(((l) )&0xff)),c+=3) | ||
192 | |||
193 | /* LOCAL STUFF */ | 187 | /* LOCAL STUFF */ |
194 | 188 | ||
195 | #define SSL_DECRYPT 0 | 189 | #define SSL_DECRYPT 0 |