/* * Copyright (C) 2006, 2007 Free Software Foundation * Copyright (C) 2000,2001 Fabio Fiorina * * This file is part of LIBTASN1. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ /*****************************************************/ /* File: CrlExample.c */ /* Description: An example on how to use the ASN1 */ /* parser with the Certificate.txt file */ /*****************************************************/ #include #include #include #include "libtasn1.h" char * my_ltostr(long v,char *str) { long d,r; char temp[20]; int count,k,start; if(v<0){ str[0]='-'; start=1; v=-v; } else start=0; count=0; do{ d=v/10; r=v-d*10; temp[start+count]='0'+(char)r; count++; v=d; }while(v); for(k=0;k