Deleted Added
sdiff udiff text old ( 100947 ) new ( 110010 )
full compact
1.\" Automatically generated by Pod::Man version 1.15
2.\" Tue Jul 30 09:21:33 2002
3.\"
4.\" Standard preamble:
5.\" ======================================================================
6.de Sh \" Subsection heading
7.br
8.if t .Sp
9.ne 5
10.PP

--- 122 unchanged lines hidden (view full) ---

133. ds Th \o'LP'
134. ds ae ae
135. ds Ae AE
136.\}
137.rm #[ #] #H #V #F C
138.\" ======================================================================
139.\"
140.IX Title "DSA_set_method 3"
141.TH DSA_set_method 3 "0.9.6e" "2000-11-12" "OpenSSL"
142.UC
143.SH "NAME"
144DSA_set_default_method, DSA_get_default_method, DSA_set_method,
145DSA_new_method, DSA_OpenSSL \- select \s-1DSA\s0 method
146.SH "SYNOPSIS"
147.IX Header "SYNOPSIS"
148.Vb 1
149\& #include <openssl/dsa.h>
150.Ve
151.Vb 1
152\& void DSA_set_default_method(DSA_METHOD *meth);
153.Ve
154.Vb 1
155\& DSA_METHOD *DSA_get_default_method(void);
156.Ve
157.Vb 1
158\& DSA_METHOD *DSA_set_method(DSA *dsa, DSA_METHOD *meth);
159.Ve
160.Vb 1
161\& DSA *DSA_new_method(DSA_METHOD *meth);
162.Ve
163.Vb 1
164\& DSA_METHOD *DSA_OpenSSL(void);
165.Ve
166.SH "DESCRIPTION"
167.IX Header "DESCRIPTION"
168A \fB\s-1DSA_METHOD\s0\fR specifies the functions that OpenSSL uses for \s-1DSA\s0
169operations. By modifying the method, alternative implementations
170such as hardware accelerators may be used.
171.PP
172Initially, the default is to use the OpenSSL internal implementation.
173\&\fIDSA_OpenSSL()\fR returns a pointer to that method.
174.PP
175\&\fIDSA_set_default_method()\fR makes \fBmeth\fR the default method for all \fB\s-1DSA\s0\fR
176structures created later.
177.PP
178\&\fIDSA_get_default_method()\fR returns a pointer to the current default
179method.
180.PP
181\&\fIDSA_set_method()\fR selects \fBmeth\fR for all operations using the structure \fBdsa\fR.
182.PP
183\&\fIDSA_new_method()\fR allocates and initializes a \fB\s-1DSA\s0\fR structure so that
184\&\fBmethod\fR will be used for the \s-1DSA\s0 operations. If \fBmethod\fR is \fB\s-1NULL\s0\fR,
185the default method is used.
186.SH "THE DSA_METHOD STRUCTURE"
187.IX Header "THE DSA_METHOD STRUCTURE"
188struct
189 {
190 /* name of the implementation */
191 const char *name;
192.PP
193.Vb 3

--- 38 unchanged lines hidden (view full) ---

232.Vb 1
233\& char *app_data; /* ?? */
234.Ve
235.Vb 1
236\& } DSA_METHOD;
237.Ve
238.SH "RETURN VALUES"
239.IX Header "RETURN VALUES"
240\&\fIDSA_OpenSSL()\fR and \fIDSA_get_default_method()\fR return pointers to the
241respective \fB\s-1DSA_METHOD\s0\fRs.
242.PP
243\&\fIDSA_set_default_method()\fR returns no value.
244.PP
245\&\fIDSA_set_method()\fR returns a pointer to the \fB\s-1DSA_METHOD\s0\fR previously
246associated with \fBdsa\fR.
247.PP
248\&\fIDSA_new_method()\fR returns \fB\s-1NULL\s0\fR and sets an error code that can be
249obtained by ERR_get_error(3) if the allocation
250fails. Otherwise it returns a pointer to the newly allocated
251structure.
252.SH "SEE ALSO"
253.IX Header "SEE ALSO"
254dsa(3), DSA_new(3)
255.SH "HISTORY"
256.IX Header "HISTORY"
257\&\fIDSA_set_default_method()\fR, \fIDSA_get_default_method()\fR, \fIDSA_set_method()\fR,
258\&\fIDSA_new_method()\fR and \fIDSA_OpenSSL()\fR were added in OpenSSL 0.9.4.