~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/minitasn1/errors.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *      Copyright (C) 2006, 2008, 2009 Free Software Foundation, Inc.
3
 
 *      Copyright (C) 2002, 2005 Fabio Fiorina
 
2
 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010 Free Software
 
3
 * Foundation, Inc.
4
4
 *
5
5
 * This file is part of LIBTASN1.
6
6
 *
57
57
};
58
58
 
59
59
/**
60
 
 * asn1_perror - prints a string to stderr with a description of an error
 
60
 * asn1_perror:
61
61
 * @error: is an error returned by a libtasn1 function.
62
62
 *
63
 
 * This function is like perror().  The only difference is that it
64
 
 * accepts an error returned by a libtasn1 function.
 
63
 * Prints a string to stderr with a description of an error.  This
 
64
 * function is like perror().  The only difference is that it accepts
 
65
 * an error returned by a libtasn1 function.
65
66
 *
66
67
 * This function replaces libtasn1_perror() in older libtasn1.
67
68
 *
75
76
}
76
77
 
77
78
/**
78
 
 * asn1_strerror - Returns a string with a description of an error
 
79
 * asn1_strerror:
79
80
 * @error: is an error returned by a libtasn1 function.
80
81
 *
81
 
 * This function is similar to strerror.  The only difference is that
82
 
 * it accepts an error (number) returned by a libtasn1 function.
 
82
 * Returns a string with a description of an error.  This function is
 
83
 * similar to strerror.  The only difference is that it accepts an
 
84
 * error (number) returned by a libtasn1 function.
83
85
 *
84
86
 * This function replaces libtasn1_strerror() in older libtasn1.
85
87
 *
105
107
/* Compatibility mappings to preserve ABI. */
106
108
 
107
109
/**
108
 
 * libtasn1_perror - prints a string to stderr with a description of an error
 
110
 * libtasn1_perror:
109
111
 * @error: is an error returned by a libtasn1 function.
110
112
 *
111
 
 * This function is like perror(). The only difference is that it
112
 
 * accepts an error returned by a libtasn1 function.
 
113
 * Prints a string to stderr with a description of an error.  This
 
114
 * function is like perror(). The only difference is that it accepts
 
115
 * an error returned by a libtasn1 function.
113
116
 *
114
117
 * Deprecated: Use asn1_perror() instead.
115
118
 **/
120
123
}
121
124
 
122
125
/**
123
 
 * libtasn1_strerror - Returns a string with a description of an error
 
126
 * libtasn1_strerror:
124
127
 * @error: is an error returned by a libtasn1 function.
125
128
 *
126
 
 * This function is similar to strerror.  The only difference is that
127
 
 * it accepts an error (number) returned by a libtasn1 function.
 
129
 * Returns a string with a description of an error.  This function is
 
130
 * similar to strerror.  The only difference is that it accepts an
 
131
 * error (number) returned by a libtasn1 function.
128
132
 *
129
133
 * Returns: Pointer to static zero-terminated string describing error
130
134
 *   code.