Is libmircookie really something that will need to be released in sync with every Mir release? Or should it be a separate project?
~~~~
+std::vector<uint8_t> get_random_data(unsigned size);
Could be:
CookieFactory::CookieFactory(unsigned size);
+void mir::Server::set_cookie_secret(std::vector<uint8_t> const& secret) +{ + verify_setting_allowed(self->server_config); + self->cookie_factory = std::make_shared<CookieFactory>(secret); +}
It is a little surprising that this sets the cookie factory, not the secret.
« Back to merge proposal
Is libmircookie really something that will need to be released in sync with every Mir release? Or should it be a separate project?
~~~~
+std::vector< uint8_t> get_random_ data(unsigned size);
Could be:
CookieFactory: :CookieFactory( unsigned size);
~~~~
+void mir::Server: :set_cookie_ secret( std::vector< uint8_t> const& secret) setting_ allowed( self->server_ config) ; factory = std::make_ shared< CookieFactory> (secret) ;
+{
+ verify_
+ self->cookie_
+}
It is a little surprising that this sets the cookie factory, not the secret.