summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h
new file mode 100644
index 0000000..f802f3b
--- /dev/null
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/StreamCrypto.h
@@ -0,0 +1,37 @@
1#pragma once
2/*
3 * Copyright (C) 2017 Team Kodi
4 * http://kodi.tv
5 *
6 * This Program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This Program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Kodi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 *
20 */
21
22typedef struct CRYPTO_INFO
23{
24 enum CRYPTO_KEY_SYSTEM : uint8_t
25 {
26 CRYPTO_KEY_SYSTEM_NONE = 0,
27 CRYPTO_KEY_SYSTEM_WIDEVINE,
28 CRYPTO_KEY_SYSTEM_PLAYREADY,
29 CRYPTO_KEY_SYSTEM_COUNT
30 } m_CryptoKeySystem; /*!< @brief keysystem for encrypted media, KEY_SYSTEM_NONE for unencrypted media */
31
32 static const uint8_t FLAG_SECURE_DECODER = 1; /*!< @brief is set in flags if decoding has to be done in TEE environment */
33
34 uint8_t flags;
35 uint16_t m_CryptoSessionIdSize; /*!< @brief The size of the crypto session key id */
36 const char *m_CryptoSessionId; /*!< @brief The crypto session key id */
37} CRYPTO_INFO;