From 5de2c218a397d4243cdb0ec08cf300b2c12bf1aa Mon Sep 17 00:00:00 2001
From: Hans Bolinder
-
`Setup' `() -> (R::any())'
@@ -928,7 +927,6 @@ To make the descriptions simpler, we first list some definitions:
`Where' `local | spawn | {spawn, Node::atom()}'
Agent specific config options and types:
If
Default is
For defaults see the options in
If
Default is
Defines where the SNMP agent internal db files are stored.
Defines the maximum number of varbinds allowed in a Get-BULK response.
Default is
Defines options specific for the SNMP agent local database.
For defaults see the options in
When starting snmpa_local_db it always tries to open an
existing database. If
Default is
The auto save interval. The table is flushed to disk whenever not accessed for this amount of time.
Default is
Defines options specific for the SNMP agent network interface @@ -246,8 +247,8 @@
For defaults see the options in
Module which handles the network interface part for the SNMP agent. Must implement the @@ -255,8 +256,8 @@
Default is
For defaults see the options in
Max number of simultaneous requests handled by the agent.
Default is
These options are actually specific to the used module.
@@ -288,8 +289,8 @@
Module which handles the network interface filter part for the SNMP agent. Must implement the @@ -297,8 +298,8 @@
Default is
Specifies a list of MIBs (including path) that defines which MIBs are initially loaded into the SNMP master agent.
@@ -312,8 +313,8 @@Default is
This option specifies how basic mib data is stored. @@ -322,8 +323,8 @@
Default is
Defines the mib storage module of the SNMP agent as defined by the
Default module is
This is implementattion depended. That is, it depends on the module. For each module a specific set of options are valid. @@ -427,16 +428,16 @@
Defines options specific for the SNMP agent mib server.
For defaults see the options in
If this value is false, then when loading a mib each mib- entry is checked prior to installation of the mib. @@ -445,8 +446,8 @@
Default is
If this value is false, then when loading a mib each trap is checked prior to installation of the mib. @@ -455,11 +456,12 @@
Default is
Defines the backend data module of the SNMP agent mib-server as defined by the @@ -476,24 +478,24 @@
Default module is
Shall the agent utilize the mib server lookup cache or not.
Default is
Defines options specific for the SNMP agent mib server cache.
For defaults see the options in
Defines if the mib server shall perform cache gc automatically or leave it to the user (see @@ -501,8 +503,8 @@
Default is
Defines how old the entries in the cache will be allowed to become before they are GC'ed (assuming GC is performed). @@ -511,8 +513,8 @@
Default is
When performing a GC, this is the max number of cache entries that will be deleted from the cache.
@@ -522,8 +524,8 @@Default is
Defines an error report module, implementing the
Default is
Defines options specific for the SNMP agent symbolic store.
For defaults see the options in
Defines options specific for the SNMP agent target cache.
For defaults see the options in
Defines specific config related options for the SNMP agent.
For defaults see the options in
Defines where the SNMP agent configuration files are stored.
If
Manager specific config options and types:
Specifies the options for the manager server process.
Default is
Asynchronous request cleanup time. For every requests, some info is stored internally, in order to be able to @@ -606,44 +608,44 @@
Default is
Defines specific config related options for the SNMP manager.
For defaults see the options in
Defines where the SNMP manager configuration files are stored.
Defines where the SNMP manager store persistent data.
Defines the repair option for the persistent database (if and how the table is repaired when opened).
Default is
The auto save interval. The table is flushed to disk whenever not accessed for this amount of time.
Default is
This option defines how the manager will handle the sending of response (acknowledgment) to received inform-requests.
@@ -672,16 +674,16 @@Default is
Specifies a list of MIBs (including path) and defines which MIBs are initially loaded into the SNMP manager.
Default is
For defaults see the options in
For defaults see the options in
The module which handles the network interface part for the SNMP manager. It must implement the @@ -714,8 +716,8 @@
Default is
These options are actually specific to the used module.
@@ -725,8 +727,8 @@
Module which handles the network interface filter part for the SNMP manager. Must implement the @@ -734,16 +736,16 @@
Default is
The module implementing the default user. See the
Default is
Data for the default user. Passed to the user module when calling the callback functions.
@@ -754,8 +756,8 @@Common config types:
See
Defines what to do if the agent or manager is unable to open an
existing database file.
Default is
Defines the Erlang priority for all SNMP processes.
Default is
Which SNMP versions shall be accepted/used.
Default is
Verbosity for a SNMP process. This specifies now much debug info is printed.
Default is
If
Default is
If
Default is
Receive buffer size.
Default value is defined by
Send buffer size.
Default value is defined by
Specifies the start-up verbosity for the SNMP note store.
For defaults see the options in
Note cleanup time. When storing a note in the note store,
each note is given lifetime. Every
If present, this option specifies the options for the @@ -861,8 +863,8 @@
If not present, audit trail logging is not used.
Specifies what type of an audit trail log should be used. The effect of the type is actually different for the the agent @@ -883,16 +885,16 @@
Default is
Specifies where the audit trail log should be stored.
If
Specifies the size of the audit
trail log. This parameter is sent to
Specifies if and how the audit trail log shall be repaired
when opened. Unless this parameter has the value
Default is
Specifies if the audit trail log entries will be (sequence)
numbered or not. The range of the sequence numbers are according
diff --git a/lib/snmp/doc/src/snmp_config.xml b/lib/snmp/doc/src/snmp_config.xml
index f10574a2a9..a085252d90 100644
--- a/lib/snmp/doc/src/snmp_config.xml
+++ b/lib/snmp/doc/src/snmp_config.xml
@@ -130,16 +130,16 @@
Agent specific config options and types:
If
Default is
For defaults see the options in
If
Default is
Defines where the SNMP agent internal db files are stored.
Defines the maximum number of varbinds allowed in a Get-BULK response.
Default is
Defines options specific for the SNMP agent local database.
For defaults see the options in
When starting snmpa_local_db it always tries to open an
existing database. If
Default is
The auto save interval. The table is flushed to disk whenever not accessed for this amount of time.
Default is
For defaults see the options in
Module which handles the network interface part for the SNMP agent. Must implement the @@ -252,8 +252,8 @@
Default is
For defaults see the options in
Max number of simultaneous requests handled by the agent.
Default is
These options are actually specific to the used module. @@ -284,8 +284,8 @@
For defaults see the options in
Module which handles the network interface filter part for the SNMP agent. Must implement the @@ -294,8 +294,8 @@
Default is
Specifies a list of MIBs (including path) that defines which MIBs are initially loaded into the SNMP master agent.
@@ -309,8 +309,8 @@Default is
This option specifies how basic mib data is stored. @@ -319,8 +319,8 @@
Default is
Defines the mib storage module of the SNMP agent as defined by the
Default module is
This is implementattion depended. That is, it depends on the
module. For each module a specific set of options are valid.
@@ -429,8 +429,8 @@
This is the old format which is "supported", but not documented,
in so far as it will be converted to the new format if found.
- Specifies how info retrieved from the mibs will be stored. If Defines options specific for the SNMP agent mib server. For defaults see the options in If this value is false, then when loading a mib each mib-
entry is checked prior to installation of the mib.
@@ -474,8 +474,8 @@ in so far as it will be converted to the new format if found.
Default is If this value is false, then when loading a mib each trap
is checked prior to installation of the mib.
@@ -484,11 +484,13 @@ in so far as it will be converted to the new format if found.
Default is Defines the backend data module of the SNMP agent mib-server as
defined by the
@@ -505,24 +507,24 @@ in so far as it will be converted to the new format if found.
Default module is Shall the agent utilize the mib server lookup cache or not. Default is Defines options specific for the SNMP agent mib server cache. For defaults see the options in Defines if the mib server shall perform cache gc automatically or
leave it to the user (see
@@ -530,8 +532,8 @@ in so far as it will be converted to the new format if found.
Default is Defines how old the entries in the cache will be allowed
to become before they are GC'ed (assuming GC is performed).
@@ -540,8 +542,8 @@ in so far as it will be converted to the new format if found.
Default is When performing a GC, this is the max number of cache entries
that will be deleted from the cache. Default is Defines an error report module, implementing the
Default is Defines options specific for the SNMP agent symbolic store. For defaults see the options in Defines options specific for the SNMP agent target cache. For defaults see the options in Defines specific config related options for the SNMP agent. For defaults see the options in Defines where the SNMP agent configuration files are stored. If Manager specific config options and types: Specifies the options for the manager server process. Default is Asynchronous request cleanup time. For every requests,
some info is stored internally, in order to be able to
@@ -635,44 +637,44 @@ in so far as it will be converted to the new format if found.
Default is Defines specific config related options for the SNMP manager. For defaults see the options in Defines where the SNMP manager configuration files are stored. Defines where the SNMP manager store persistent data. Defines the repair option for the persistent database (if
and how the table is repaired when opened). Default is The auto save interval. The table is flushed to disk
whenever not accessed for this amount of time. Default is This option defines how the manager will handle the sending of
response (acknowledgment) to received inform-requests. Default is Specifies a list of MIBs (including path) and defines which MIBs
are initially loaded into the SNMP manager. Default is For defaults see the options in For defaults see the options in The module which handles the network interface part for the
SNMP manager. It must implement the
@@ -743,8 +745,8 @@ in so far as it will be converted to the new format if found.
Default is These options are actually specific to the used module.
@@ -754,8 +756,8 @@ in so far as it will be converted to the new format if found.
Module which handles the network interface filter part for the
SNMP manager. Must implement the
@@ -763,16 +765,16 @@ in so far as it will be converted to the new format if found.
Default is The module implementing the default user. See the
Default is Data for the default user. Passed to the user when calling
the callback functions. Common config types: See
Defines what to do if the agent is unable to open an
existing database file.
Default is
Defines the Erlang priority for all SNMP processes.
Default is
Which SNMP versions shall be accepted/used.
Default is
Verbosity for a SNMP process. This specifies now much debug info is printed.
Default is
If
Default is
If
Default is
Receive buffer size.
Default value is defined by
Send buffer size.
Default value is defined by
Specifies the options for the SNMP note store.
For defaults see the options in
Note cleanup time. When storing a note in the note store,
each note is given lifetime. Every
Default is
If present, this option specifies the options for the @@ -889,8 +891,8 @@ in so far as it will be converted to the new format if found.
If not present, audit trail logging is not used.
Specifies what type of an audit trail log should be used. The effect of the type is actually different for the the agent @@ -911,16 +913,16 @@ in so far as it will be converted to the new format if found.
Default is
Specifies where the audit trail log should be stored.
If
Specifies the size of the audit
trail log. This parameter is sent to
Specifies if and how the audit trail log shall be repaired
when opened. Unless this parameter has the value
Default is
Specifies if the audit trail log entries will be (sequence) numbered or not. The range of the sequence numbers are according diff --git a/lib/snmp/doc/src/snmp_manager_netif.xml b/lib/snmp/doc/src/snmp_manager_netif.xml index 8454d03b17..98d4e7fd96 100644 --- a/lib/snmp/doc/src/snmp_manager_netif.xml +++ b/lib/snmp/doc/src/snmp_manager_netif.xml @@ -75,8 +75,7 @@
In this section a
Net if must send the following message when it receives an SNMP PDU from the network that is aimed for the MasterAgent: diff --git a/lib/snmp/doc/src/snmpa.xml b/lib/snmp/doc/src/snmpa.xml index f205af6e88..c84eeec524 100644 --- a/lib/snmp/doc/src/snmpa.xml +++ b/lib/snmp/doc/src/snmpa.xml @@ -622,12 +622,12 @@ notification_delivery_info() = #snmpa_notification_delivery_info{}
Converts an Audit Trail Log to a readable format and
prints it on stdio.
The
See
Converts an Audit Trail Log to a readable text file.
The
See
Converts an Audit Trail Log to a readable format and
prints it on stdio.
The
See
Thanks to Simon Cornish
- Own Id: OTP-12760 Aux Id: pull req - 715
+ 715@@ -384,13 +384,13 @@
- Made Codenomicon Defensics test suite pass:
+ Made Codenomicon Defensics test suite pass:
Own Id: OTP-12784
Example of writing and then reading a tar file follows:
-
+
{ok,HandleWrite} = ssh_sftp:open_tar(ChannelPid, ?tar_file_name, [write]),
ok = erl_tar:add(HandleWrite, .... ),
ok = erl_tar:add(HandleWrite, .... ),
@@ -249,7 +249,7 @@
The previous write and read example can be extended with encryption and decryption as follows:
-
+
%% First three parameters depending on which crypto type we select:
Key = <<"This is a 256 bit key. abcdefghi">>,
Ivec0 = crypto:rand_bytes(16),
--
cgit v1.2.3
From 6f50633829adc53d20a2c2aee454aef8caece907 Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Tue, 13 Oct 2015 14:01:18 +0200
Subject: [compiler] Correct documentation
Fix mistakes found by 'xmllint'.
---
lib/compiler/doc/src/notes.xml | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
(limited to 'lib')
diff --git a/lib/compiler/doc/src/notes.xml b/lib/compiler/doc/src/notes.xml
index bd85f22462..daf3bd3af9 100644
--- a/lib/compiler/doc/src/notes.xml
+++ b/lib/compiler/doc/src/notes.xml
@@ -458,22 +458,28 @@
EEP43: New data type - Maps
- With Maps you may for instance: M0 =
- #{ a => 1, b => 2}, % create
- associations M1 = M0#{ a := 10 }, %
- update values M2 = M1#{ "hi" =>
- "hello"}, % add new associations #{
- "hi" := V1, a := V2, b := V3} = M2. % match keys with
- values
+ With Maps you may for instance:
+
+ M0 = #{ a => 1, b => 2}, % create
+ associations
+ M1 = M0#{ a := 10 }, % update values
+ M2 = M1#{ "hi" =>
+ "hello"}, % add new associations
+ #{ "hi" := V1, a := V2, b := V3} = M2.
+ % match keys with values
+
For information on how to use Maps please see Map Expressions in the
Reference Manual .
The current implementation is without the following
- features: - No variable keys
- - No single value access
- No map
- comprehensions
+ features:
+
+ - No variable keys
+ - No single value access
+ - No map comprehensions
+
Note that Maps is experimental during OTP 17.0.
--
cgit v1.2.3
From ea4114d5d4156bae207788e5be7d0157e32adfe9 Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Tue, 13 Oct 2015 14:01:30 +0200
Subject: [crypto] Correct documentation
Fix mistakes found by 'xmllint'.
---
lib/crypto/doc/src/crypto.xml | 84 +++++++++++++++++++++----------------------
1 file changed, 42 insertions(+), 42 deletions(-)
(limited to 'lib')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 291a5145e4..8d082bf3fe 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -66,29 +66,29 @@
DATA TYPES
- key_value() = integer() | binary()
+ key_value() = integer() | binary()
Always binary() when used as return value
- rsa_public() = [key_value()] = [E, N]
+ rsa_public() = [key_value()] = [E, N]
Where E is the public exponent and N is public modulus.
- rsa_private() = [key_value()] = [E, N, D] | [E, N, D, P1, P2, E1, E2, C]
+ rsa_private() = [key_value()] = [E, N, D] | [E, N, D, P1, P2, E1, E2, C]
Where E is the public exponent, N is public modulus and D is
the private exponent.The longer key format contains redundant
information that will make the calculation faster. P1,P2 are first
and second prime factors. E1,E2 are first and second exponents. C
is the CRT coefficient. Terminology is taken from RFC 3447 .
- dss_public() = [key_value()] = [P, Q, G, Y]
+ dss_public() = [key_value()] = [P, Q, G, Y]
Where P, Q and G are the dss parameters and Y is the public key.
- dss_private() = [key_value()] = [P, Q, G, X]
+ dss_private() = [key_value()] = [P, Q, G, X]
Where P, Q and G are the dss parameters and X is the private key.
- srp_public() = key_value()
+ srp_public() = key_value()
Where is A or B from SRP design
- srp_private() = key_value()
+ srp_private() = key_value()
Where is a or b from SRP design
Where Verifier is v , Generator is g and Prime is N , DerivedKey is X , and Scrambler is
@@ -96,29 +96,29 @@
Version = '3' | '6' | '6a'
- dh_public() = key_value()
+ dh_public() = key_value()
- dh_private() = key_value()
+ dh_private() = key_value()
- dh_params() = [key_value()] = [P, G]
+ dh_params() = [key_value()] = [P, G]
- ecdh_public() = key_value()
+ ecdh_public() = key_value()
- ecdh_private() = key_value()
+ ecdh_private() = key_value()
- ecdh_params() = ec_named_curve() | ec_explicit_curve()
+ ecdh_params() = ec_named_curve() | ec_explicit_curve()
- ec_explicit_curve() =
- {ec_field(), Prime :: key_value(), Point :: key_value(), Order :: integer(), CoFactor :: none | integer()}
+ ec_explicit_curve() =
+ {ec_field(), Prime :: key_value(), Point :: key_value(), Order :: integer(), CoFactor :: none | integer()}
- ec_field() = {prime_field, Prime :: integer()} |
- {characteristic_two_field, M :: integer(), Basis :: ec_basis()}
+ ec_field() = {prime_field, Prime :: integer()} |
+ {characteristic_two_field, M :: integer(), Basis :: ec_basis()}
- ec_basis() = {tpbasis, K :: non_neg_integer()} |
+ ec_basis() = {tpbasis, K :: non_neg_integer()} |
{ppbasis, K1 :: non_neg_integer(), K2 :: non_neg_integer(), K3 :: non_neg_integer()} |
- onbasis
+ onbasis
- ec_named_curve() ->
+ ec_named_curve() ->
sect571r1| sect571k1| sect409r1| sect409k1| secp521r1| secp384r1| secp224r1| secp224k1|
secp192k1| secp160r2| secp128r2| secp128r1| sect233r1| sect233k1| sect193r2| sect193r1|
sect131r2| sect131r1| sect283r1| sect283k1| sect163r2| secp256k1| secp160k1| secp160r1|
@@ -128,42 +128,42 @@
brainpoolP224t1| brainpoolP256r1| brainpoolP256t1| brainpoolP320r1| brainpoolP320t1|
brainpoolP384r1| brainpoolP384t1| brainpoolP512r1| brainpoolP512t1
- Note that the sect curves are GF2m (characteristic two) curves and are only supported if the
+ Note that the sect curves are GF2m (characteristic two) curves and are only supported if the
underlying OpenSSL has support for them.
See also crypto:supports/0
- stream_cipher() = rc4 | aes_ctr
+ stream_cipher() = rc4 | aes_ctr
- block_cipher() = aes_cbc128 | aes_cfb8 | aes_cfb128 | aes_ige256 | blowfish_cbc |
+ block_cipher() = aes_cbc128 | aes_cfb8 | aes_cfb128 | aes_ige256 | blowfish_cbc |
blowfish_cfb64 | des_cbc | des_cfb | des3_cbc | des3_cbf
- | des_ede3 | rc2_cbc
+ | des_ede3 | rc2_cbc
-
aead_cipher() = aes_gcm | chacha20_poly1305
+ aead_cipher() = aes_gcm | chacha20_poly1305
- stream_key() = aes_key() | rc4_key()
+ stream_key() = aes_key() | rc4_key()
- block_key() = aes_key() | blowfish_key() | des_key()| des3_key()
+ block_key() = aes_key() | blowfish_key() | des_key()| des3_key()
- aes_key() = iodata()
Key length is 128, 192 or 256 bits
+ aes_key() = iodata()
Key length is 128, 192 or 256 bits
- rc4_key() = iodata()
Variable key length from 8 bits up to 2048 bits (usually between 40 and 256)
+ rc4_key() = iodata()
Variable key length from 8 bits up to 2048 bits (usually between 40 and 256)
- blowfish_key() = iodata()
Variable key length from 32 bits up to 448 bits
+ blowfish_key() = iodata()
Variable key length from 32 bits up to 448 bits
- des_key() = iodata()
Key length is 64 bits (in CBC mode only 8 bits are used)
+ des_key() = iodata()
Key length is 64 bits (in CBC mode only 8 bits are used)
- des3_key() = [binary(), binary(), binary()]
Each key part is 64 bits (in CBC mode only 8 bits are used)
+ des3_key() = [binary(), binary(), binary()]
Each key part is 64 bits (in CBC mode only 8 bits are used)
- digest_type() = md5 | sha | sha224 | sha256 | sha384 | sha512
+ digest_type() = md5 | sha | sha224 | sha256 | sha384 | sha512
- hash_algorithms() = md5 | ripemd160 | sha | sha224 | sha256 | sha384 | sha512
md4 is also supported for hash_init/1 and hash/2.
+ hash_algorithms() = md5 | ripemd160 | sha | sha224 | sha256 | sha384 | sha512
md4 is also supported for hash_init/1 and hash/2.
Note that both md4 and md5 are recommended only for compatibility with existing applications.
- cipher_algorithms() = des_cbc | des_cfb | des3_cbc | des3_cbf | des_ede3 |
- blowfish_cbc | blowfish_cfb64 | aes_cbc128 | aes_cfb8 | aes_cfb128| aes_cbc256 | aes_ige256 | aes_gcm | chacha20_poly1305 | rc2_cbc | aes_ctr| rc4
- public_key_algorithms() = rsa |dss | ecdsa | dh | ecdh | ec_gf2m
- Note that ec_gf2m is not strictly a public key algorithm, but a restriction on what curves are supported
+ cipher_algorithms() = des_cbc | des_cfb | des3_cbc | des3_cbf | des_ede3 |
+ blowfish_cbc | blowfish_cfb64 | aes_cbc128 | aes_cfb8 | aes_cfb128| aes_cbc256 | aes_ige256 | aes_gcm | chacha20_poly1305 | rc2_cbc | aes_ctr| rc4
+ public_key_algorithms() = rsa |dss | ecdsa | dh | ecdh | ec_gf2m
+
Note that ec_gf2m is not strictly a public key algorithm, but a restriction on what curves are supported
with ecdsa and ecdh.
@@ -381,8 +381,8 @@
Computes a HMAC of type Type from Data using
- Key as the authentication key.
MacLength
- will limit the size of the resultant Mac .
+ Key as the authentication key. MacLength
+ will limit the size of the resultant Mac .
@@ -650,7 +650,7 @@
Creates a digital signature.
Algorithm dss can only be used together with digest type
sha .
- See also public_key:sign/3
+ See also public_key:sign/3 .
@@ -802,7 +802,7 @@
Algorithm dss can only be used together with digest type
sha .
- See also public_key:verify/4
+ See also public_key:verify/4 .
--
cgit v1.2.3