… | … | ||
---|---|---|---|
1297 | CODE: | 1297 | CODE: |
1298 | if(ctx) | 1298 | if(ctx) |
1299 | free(ctx); | 1299 | free(ctx); |
1300 | 1300 | ||
1301 | void | 1301 | void |
1302 | update(ctx, sv) | 1302 | update(ctx, ...) |
1303 | OpenSSL::Digest ctx | 1303 | OpenSSL::Digest ctx |
1304 | SV *sv | ||
1305 | PREINIT: | 1304 | PREINIT: |
1306 | STRLEN l; | 1305 | STRLEN l; |
1307 | char *p; | 1306 | char *p; |
1307 | int i; | ||
1308 | CODE: | 1308 | CODE: |
1309 | p = SvPV(sv, l); | 1309 | for (i = 1; i < items; i++) |
1310 | { | ||
1311 | p = SvPV(ST(i), l); | ||
1310 | EVP_DigestUpdate(ctx, p, l); | 1312 | EVP_DigestUpdate(ctx, p, l); |
1313 | } | ||
1311 | 1314 | ||
1312 | SV * | 1315 | SV * |
1313 | final(ctx) | 1316 | final(ctx) |
1314 | OpenSSL::Digest ctx | 1317 | OpenSSL::Digest ctx |
1315 | ALIAS: | 1318 | ALIAS: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |