~ubuntu-branches/ubuntu/precise/openssl098/precise

« back to all changes in this revision

Viewing changes to doc/crypto/BN_copy.pod

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2011-03-23 19:50:31 UTC
  • Revision ID: james.westby@ubuntu.com-20110323195031-6h9crj4bymhhr8b8
Tags: upstream-0.9.8o
ImportĀ upstreamĀ versionĀ 0.9.8o

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=pod
 
2
 
 
3
=head1 NAME
 
4
 
 
5
BN_copy, BN_dup - copy BIGNUMs
 
6
 
 
7
=head1 SYNOPSIS
 
8
 
 
9
 #include <openssl/bn.h>
 
10
 
 
11
 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
 
12
 
 
13
 BIGNUM *BN_dup(const BIGNUM *from);
 
14
 
 
15
=head1 DESCRIPTION
 
16
 
 
17
BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM>
 
18
containing the value B<from>.
 
19
 
 
20
=head1 RETURN VALUES
 
21
 
 
22
BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
 
23
the new B<BIGNUM>, and NULL on error. The error codes can be obtained
 
24
by L<ERR_get_error(3)|ERR_get_error(3)>.
 
25
 
 
26
=head1 SEE ALSO
 
27
 
 
28
L<bn(3)|bn(3)>, L<ERR_get_error(3)|ERR_get_error(3)>
 
29
 
 
30
=head1 HISTORY
 
31
 
 
32
BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL.
 
33
 
 
34
=cut