summaryrefslogtreecommitdiff
path: root/libavformat/allformats.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-23 01:31:41 +0200
committerMartin Storsjö <martin@martin.st>2011-04-23 00:27:10 +0300
commit6e4f70a8de69884ce0caa8735d7a88915b4391d4 (patch)
tree3cd02e093e4ab3bb14c2378010b501c4c40f6d40 /libavformat/allformats.c
parentd5c5a1c7e2959a5174522b5ac1d73d5095b8c5a3 (diff)
Add a protocol handler for AES CBC decryption with PKCS7 padding
This can later be extended to support other AES bit sizes, encryption, other crypto algorithms, reading the key from a URL, etc. In order to use it, the key and initialization vector has to be passed via AVOptions. Since such options can't be passed to protocols from the command line, the protocol is currently only for libavformat internal use. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/allformats.c')
-rw-r--r--libavformat/allformats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 931947d60a..f1c3d3b768 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -235,6 +235,7 @@ void av_register_all(void)
/* protocols */
REGISTER_PROTOCOL (APPLEHTTP, applehttp);
REGISTER_PROTOCOL (CONCAT, concat);
+ REGISTER_PROTOCOL (CRYPTO, crypto);
REGISTER_PROTOCOL (FILE, file);
REGISTER_PROTOCOL (GOPHER, gopher);
REGISTER_PROTOCOL (HTTP, http);