Skip to content

Commit

Permalink
tidy: Make member functions const.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Feb 5, 2025
1 parent a5d5eb4 commit 8961aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/HLS/HLSStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ QString HLSRecStream::toString(void) const

#ifdef USING_LIBCRYPTO
bool HLSRecStream::DownloadKey(MythSingleDownload& downloader,
const QString& keypath, HLS_AES_KEY* aeskey)
const QString& keypath, HLS_AES_KEY* aeskey) const
{
QByteArray key;

Expand Down Expand Up @@ -79,7 +79,7 @@ bool HLSRecStream::DownloadKey(MythSingleDownload& downloader,
// https://wiki.openssl.org/index.php/EVP_Symmetric_Encryption_and_Decryption
//
int HLSRecStream::Decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key,
unsigned char *iv, unsigned char *plaintext)
unsigned char *iv, unsigned char *plaintext) const
{
int len = 0;

Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/HLS/HLSStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class HLSRecStream
#ifdef USING_LIBCRYPTO
protected:
int Decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key,
unsigned char *iv, unsigned char *plaintext);
unsigned char *iv, unsigned char *plaintext) const;
bool DownloadKey(MythSingleDownload& downloader,
const QString& keypath, HLS_AES_KEY* aeskey);
const QString& keypath, HLS_AES_KEY* aeskey) const;
bool DecodeData(MythSingleDownload& downloader,
const QByteArray& IV, const QString& keypath,
QByteArray& data, int64_t sequence);
Expand Down

0 comments on commit 8961aac

Please sign in to comment.