| Index: public/platform/WebCryptoAlgorithmParams.h
|
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
|
| index c18187591bd29df6d732b3c6bf3acd8a38291a93..7562ce497c565331954a9e305aa1a0ee1ab389b4 100644
|
| --- a/public/platform/WebCryptoAlgorithmParams.h
|
| +++ b/public/platform/WebCryptoAlgorithmParams.h
|
| @@ -115,16 +115,18 @@ public:
|
|
|
| bool hasLength() const { return m_hasLength; }
|
|
|
| - unsigned length() const
|
| + bool getLength(unsigned& length) const
|
| {
|
| - WEBKIT_ASSERT(m_length);
|
| - return m_length;
|
| + if (!m_hasLength)
|
| + return false;
|
| + length = m_length;
|
| + return true;
|
| }
|
|
|
| private:
|
| WebCryptoAlgorithm m_hash;
|
| bool m_hasLength;
|
| - int m_length;
|
| + unsigned m_length;
|
| };
|
|
|
| class WebCryptoRsaSsaParams : public WebCryptoAlgorithmParams {
|
|
|