a_bool.c (55714) | a_bool.c (109998) |
---|---|
1/* crypto/asn1/a_bool.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 44 unchanged lines hidden (view full) --- 53 * The licence and distribution terms for any publically available version or 54 * derivative of this code cannot be changed. i.e. this code cannot simply be 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58 59#include <stdio.h> 60#include "cryptlib.h" | 1/* crypto/asn1/a_bool.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 44 unchanged lines hidden (view full) --- 53 * The licence and distribution terms for any publically available version or 54 * derivative of this code cannot be changed. i.e. this code cannot simply be 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58 59#include <stdio.h> 60#include "cryptlib.h" |
61#include | 61#include <openssl/asn1t.h> |
62 63int i2d_ASN1_BOOLEAN(int a, unsigned char **pp) 64 { 65 int r; 66 unsigned char *p; 67 68 r=ASN1_object_size(0,1,V_ASN1_BOOLEAN); 69 if (pp == NULL) return(r); --- 35 unchanged lines hidden (view full) --- 105 ret= (int)*(p++); 106 if (a != NULL) (*a)=ret; 107 *pp=p; 108 return(ret); 109err: 110 ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,i); 111 return(ret); 112 } | 62 63int i2d_ASN1_BOOLEAN(int a, unsigned char **pp) 64 { 65 int r; 66 unsigned char *p; 67 68 r=ASN1_object_size(0,1,V_ASN1_BOOLEAN); 69 if (pp == NULL) return(r); --- 35 unchanged lines hidden (view full) --- 105 ret= (int)*(p++); 106 if (a != NULL) (*a)=ret; 107 *pp=p; 108 return(ret); 109err: 110 ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,i); 111 return(ret); 112 } |
113 114 |
|