From d55bfe34f5dc27edf8f8b9f0b6f0dae45b1bf53c Mon Sep 17 00:00:00 2001 From: jsing Date: Mon, 27 Aug 2018 17:11:32 +0000 Subject: [PATCH] n2s and l2n3 finally bite the dust! --- lib/libssl/ssl_locl.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 39aabb05fb2..2592d56a613 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.210 2018/08/27 16:42:48 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.211 2018/08/27 17:11:32 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -181,15 +181,9 @@ __BEGIN_HIDDEN_DECLS *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ *((c)++)=(unsigned char)(((l) )&0xff)) -#define n2s(c,s) ((s=(((unsigned int)(c[0]))<< 8)| \ - (((unsigned int)(c[1])) )),c+=2) #define s2n(s,c) ((c[0]=(unsigned char)(((s)>> 8)&0xff), \ c[1]=(unsigned char)(((s) )&0xff)),c+=2) -#define l2n3(l,c) ((c[0]=(unsigned char)(((l)>>16)&0xff), \ - c[1]=(unsigned char)(((l)>> 8)&0xff), \ - c[2]=(unsigned char)(((l) )&0xff)),c+=3) - /* LOCAL STUFF */ #define SSL_DECRYPT 0 -- 2.20.1