summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-11-30 22:58:27 +0000
committerBodo Möller <bodo@openssl.org>2000-11-30 22:58:27 +0000
commit12cfcc128cbf1a5c6b9806ff39368f0d3c6be138 (patch)
tree21fd6c7edecd3bcb89b355a033984d47c76bf3d5 /crypto
parentf9b3bff6f7e38960bb87a5623fbcbc45ee952c49 (diff)
Fix the recently introduced test that checks if the result is 0
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/bn_exp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_exp2.c b/crypto/bn/bn_exp2.c
index 4b41dae078..73ccd58a83 100644
--- a/crypto/bn/bn_exp2.c
+++ b/crypto/bn/bn_exp2.c
@@ -176,7 +176,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
}
else
a_mod_m = a1;
- if (BN_is_zero(&(val1[0])))
+ if (BN_is_zero(a_mod_m))
{
ret = BN_zero(rr);
goto err;
@@ -211,7 +211,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
}
else
a_mod_m = a2;
- if (BN_is_zero(&(val2[0])))
+ if (BN_is_zero(a_mod_m))
{
ret = BN_zero(rr);
goto err;
ocs/installation.markdown?h=10.0.0&id=b9e330109b58fac55c3728dd3c543552fcabd353'>diffstats
path: root/vendor/fguillot/picofeed/docs/installation.markdown
blob: 894754ca436d9705d8d0cab1659a5f10f5fd4d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Installation
============

Versions
--------

- Development version: master
- Available versions:
    - v0.1.0 (stable)
    - v0.0.2
    - v0.0.1

Note: The public API has changed between 0.0.x and 0.1.0

Installation with Composer
--------------------------

Configure your `composer.json`:

```json
{
    "require": {
        "fguillot/picofeed": "0.1.0"
    }
}
```

Or simply:

```bash
composer require fguillot/picofeed:0.1.0
```

And download the code:

```bash
composer install # or update
```

Usage example with the Composer autoloader:

```php
<?php

require 'vendor/autoload.php';

use PicoFeed\Reader\Reader;

try {

    $reader = new Reader;
    $resource = $reader->download('http://linuxfr.org/news.atom');

    $parser = $reader->getParser(
        $resource->getUrl(),
        $resource->getContent(),
        $resource->getEncoding()
    );

    $feed = $parser->execute();

    echo $feed;
}
catch (Exception $e) {
    // Do something...
}
```