NCNU-Scholarship/node_modules/mariadb/lib/cmd/handshake/auth/plugin-auth.js
2024-05-29 19:03:32 +08:00

27 lines
489 B
JavaScript

// SPDX-License-Identifier: LGPL-2.1-or-later
// Copyright (c) 2015-2024 MariaDB Corporation Ab
'use strict';
const Command = require('../../command');
/**
* Base authentication plugin
*/
class PluginAuth extends Command {
constructor(cmdParam, multiAuthResolver, reject) {
super(cmdParam, multiAuthResolver, reject);
this.onPacketReceive = multiAuthResolver;
}
permitHash() {
return true;
}
hash(conf) {
return null;
}
}
module.exports = PluginAuth;